Jump to content
Search Community

ScrollTrigger Scrolling Element to a speicifc position

SaifUllah test
Moderator Tag

Go to solution Solved by alig01,

Recommended Posts

Hello everyone,


I'm trying to move the globe/earth Image under the hand of the Lion (you can see the image below), but it is not getting responsive, I've used the MatchMedia as well but still having issues, is there any way or technique which I can use to make it perfectly responsive and move to that specific position?


I would greatly appreciate your help.

 

image.png.33bf65062a51379e865c79022f75d60b.png

See the Pen LYMNqYj by saifullahbutt85 (@saifullahbutt85) on CodePen

Link to comment
Share on other sites

  • Solution

Hey,

 

maybe another approach would be to control the Flip animation using ScrollTrigger? I have never tried it before, but it sounds doable since Flip.from() returns a timeline.

See the Pen VwqaRyZ?editors=1010 by alig01 (@alig01) on CodePen

In some cases it's a little jittery (not sure if I have already fixed the mistake) and when reloading the planet is missing, but for demonstration purposes it should suffice.

 

However, you should definitely do some research in the documentationforum or examples and look for improvements.

 

Hopefully this helps and good luck with your project.

  • Like 1
  • Thanks 1
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...