Jump to content
Search Community

Using seek() and more

silverdust test
Moderator Tag

Recommended Posts

In the linked pen, `.seek()` isn't doing what I'd have expected it to do which is jump to the exact scene with the given label. Maybe I'm doing something wrong.

This is also my first time structuring my GSAP animation with a master timeline and I know there are probably some things I'm doing wrong with that and some things generally wrong about my animation so I'm looking to get better suggestions/recommendations.

 

Thank you!

See the Pen wvvyywz by josephrexme (@josephrexme) on CodePen

Link to comment
Share on other sites

1 minute ago, ZachSaucier said:

Hey silverdust.

 

It seems to be seeking to the scene with the given label (the beginning of scene three). What scene were you expecting it to show?

Hey Zach, it starts the animation from `sceneOne` where the page is zoomed in. I thought `seek` should make it start at where the first screen just fades out -- the animation in `sceneThree` and then go on to the end. I could also use any tip you have to prevent the blur that happens on the SVG when zoomed.

Link to comment
Share on other sites

1 minute ago, silverdust said:

it starts the animation from `sceneOne` where the page is zoomed in.

I'm not seeing this behavior. For me it starts with the fade out of scene 3. What browser are you in?

 

I'm guessing the pixelation of your SVG comes form scaling the DOM containers of your SVGs. Removing the following fixes the issue (but is obviously missing the effect that you're wanting):

tl.set(phone, {
  transform: 'translate3d(40.5vw, -20px, 700px)'
});

 

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