Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-L3 committed Oct 25, 2023
1 parent 1957e1b commit e7a8ec4
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,25 @@ function startAutoSlide() {
}, 5000); // Change slides every 5 seconds
}

startAutoSlide(); // Start auto-sliding when the page loads
// startAutoSlide(); // Start auto-sliding when the page loads

// Create an Intersection Observer to track the "usecases-block" section
const usecasesBlock = document.getElementById('usecases-block');
const observerautoSlide = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
startAutoSlide(); // Start auto-sliding when "usecases-block" is in the viewport
} else {
clearInterval(autoSlideInterval); // Stop auto-sliding when "usecases-block" is out of the viewport
}
});
});

observerautoSlide.observe(usecasesBlock);

/* Pagination Usercases End */




/* Features Animaion Frames */
Expand Down Expand Up @@ -357,7 +375,7 @@ async function scrollAnimateBaseText(target) {
});
}

const basetexts = document.querySelectorAll('#instruction-block .base-text, #yBlockAPI .base-text, #footer .base-text, #yBlockDevCommunity .base-text');
const basetexts = document.querySelectorAll('#instruction-block .base-text, #yBlockAPI .base-text, #footer .base-text, #yBlockDevCommunity .base-text ');
basetexts.forEach((el) => observer2.observe(el));


Expand Down

0 comments on commit e7a8ec4

Please sign in to comment.