Jump to content
Search Community

Louis Pop

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Louis Pop

  1. if the Viewport is bigger,  then the "animtion1" element won’t disappear from screen.

    Can I for example use a percent sign like this ( X: -100%)

    this is my code bellow 

     

     

    gsap.registerPlugin(ScrollTrigger);


    gsap.to(".animation1", {

        x: -860,
        duration: 12,
        scrollTrigger: {
            pin: true,
            trigger: ".animation1",
              markers: {
            startColor: "blue",
            endColor: "purple",
            fontSize: "1rem",
            },  
            start: "100% center",
            end: "200% 30%",
            scrub: 2
        }

    });

    See the Pen RwVzgrP by Louispop (@Louispop) on CodePen

×
×
  • Create New...