Jump to content
Search Community

Rotation horizontal scrolling

Charlyta test
Moderator Tag

Go to solution Solved by elegantseagulls,

Recommended Posts

  • Solution

This is because your rotation elements aren't part of your ScrollTrigger You'll want to either separate those into their own ScrollTriggers, or add this to your pin/scrub tween as a timeline like this:

 

gsap.timeline({
  scrollTrigger: {
    scroller: pageContainer, //locomotive-scroll
    scrub: true,
    trigger: "#sectionPin",
    pin: true,
    start: "top top",
    end: pinWrapWidth, 
    markers: true,
  },
  defaults: {
    ease: 'none'
  }
})
  .to(".pin-wrap", {  
    x: -horizontalScrollLength,
  })
  .to('.anuncio1', {	 
    rotation: 360*5,
  },0);

 

  • Like 1
Link to comment
Share on other sites

 

Thank you very much for responding so quickly. Sometimes four eyes see more than two. It was a silly oversight and with a very easy solution. This forum is the best.

I know ScrollSmoother it's better than  Locomotive but it's not free and I can't afford it.

Gsap has revolutionized the creation of websites. I remember when I got certified in Flash and Actionscript was the only creative solution, but Gsap is lighter and provides unique creativity. 

I think you provide greate resources and tutorials with a good documentation. There are things that webgl can do better, but are two different things.

Thanks!!

 

  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...