scroll progress animation
P粉821808309
P粉821808309 2024-03-29 19:36:49
0
1
311

I need to know how to animate scroll progress. This is not the normal scrolling progress, but something different. I'll provide a link to the website as well as a screenshot of the specific part that contains the animation I'm looking for.

https://todoist.com/

This is the link to the website.

I have attached a screenshot of a specific section of the homepage of the website.

When the page is scrolled, the scrolling occurs within the section, and the section scrolls within itself. Once that section of scrolling is complete, continue scrolling normally. I can see a lot of tutorials on scrolling progress bars, but not this particular style of animation

P粉821808309
P粉821808309

reply all(1)
P粉548512637

Maybe this example can help you solve the problem. CodePen Use AnimeJS ScrollMagic.

general speaking:

// Add scrollmagic controller
let controller = new ScrollMagic.Controller();

// Add timeline
let tl1 = anime.timeline({autoplay: false});

//Then add some animation ... and

//Add first scrollmagic scene
let scene1 = new ScrollMagic.Scene({
 triggerElement: "#one",
 triggerHook: 0.5,
 reverse: false
})

//Play 
// Trigger animation timeline
.on("enter", function (event) {
 tl1.play();
})
 
.addTo(controller);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!