Jump to content
Search Community

Hi look like Scrollorama JS with Tween got problem at Pin function ?

JoePham

Go to solution Solved by mvaneijgen,

Recommended Posts

Posted

Hi guys, im working on a project but have some problem with the "Pin" function 
its seem cannot pin while user scroll through the Pin function is only work when user scroll up ?? how can i fix it ? 

See the Pen dyKZNrM by phm-thanh-li-m-the-animator (@phm-thanh-li-m-the-animator) on CodePen.

Posted

Hi, 

 

You are using some other library to control scroll animation. It will be difficult for us to help with that. 

I suggest
- Convert the animation code to use GSAP 3 new version you are currently using TweenMax. 

- To trigger this animation on scroll use scrollTrigger. 

And if you face issues will be able to help.

 

  • Like 2
  • Solution
Posted

It seems like you're using https://github.com/johnpolacek/superscrollorama a plugin that hasn't been updated over 7 years (the plugin page also states that it is deprecated). This is certainly not something we can help with.

 

That said and like @Trapti suggested GSAP has its own plugin that allows for animations on scroll, called ScrollTrigger. This is fully supported by GSAP and is a breeze to use, take a look at the docs and be sure to watch the video if you want to see what is possible.

 

Hope it helps and happy tweening! 

  • Like 3

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...