Skip to content

Commit

Permalink
Create script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsilva010 authored Apr 14, 2024
1 parent 09168ee commit 9b42f52
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const keyFeaturesList = document.getElementById('key-features');

window.onload = function() {
keyFeaturesList.style.opacity = 0; // Initially hide the list

// Animation function to gradually show the list
const animateList = () => {
let opacity = 0;
const intervalId = setInterval(() => {
opacity += 0.1;
keyFeaturesList.style.opacity = opacity;
if (opacity >= 1) {
clearInterval(intervalId);
}
}, 20); // Adjust the interval for animation speed (lower for faster)
};

animateList();
};

0 comments on commit 9b42f52

Please sign in to comment.