Home  >  Q&A  >  body text

scroll progress animation

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粉821808309P粉821808309203 days ago342

reply all(1)I'll reply

  • P粉548512637

    P粉5485126372024-03-30 16:33:16

    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);
    

    reply
    0
  • Cancelreply