Jump to content
Search Community

Timeline animation - need a bit of help

Lars Ejaas test
Moderator Tag

Recommended Posts

I am working on a GSAP animation and am close to finished, but I simply can't get it working as intended.

 

The idea is, that the initial animation will run (click the "movie play" icon to restart the animation) and after that it is an interactive menu.

The canvas should scroll op and down when clicking on the arrow.
 

Problems:
- when clicking the arrow, the arrow and string should pull down slightly (Tl_pull) and the canvas roll-up. On the top, the Tl_pull should work in a similar way and then fire the canvas roll down animation. 
But right now the Tl_menuUpDown.reversed version is behaving oddly (the canvas is just rolled really quickly to the top) and then the Tl_pull timeline is fired afterwards!??

- Look at the initial animation. Canvas is rolling down and the string is "rotated" out to the viewer (part of the Tl_menuUpDown animation)  and the arrow is turned 180 degr. (as it should).
But the string should stay there only very briefly and then roll down again immediately - it stays "stuck" at the top - can't figure out why?

I initially had a Tl_menuUpDown.to line (I have commented it out) but the arrow didn't turn? I am unsure how to avoid the "sticky" effect when the arrow is turning. 

I hope I made my intentions clear with the animation - I think it will make more sense when you see it live! 

 

And BTW: GSAP is really awesome - I have recently worked with the new ScrollTrigger plugin - I am BLOWN AWAY - wow!

See the Pen zYqzEBr by lars-ejaas (@lars-ejaas) on CodePen

Link to comment
Share on other sites

Hey @Lars Ejaas,

 

I am not sure if you would like it that way.

 

See the Pen ExKXbzO?editors=1010 by mikeK (@mikeK) on CodePen

 


Tl_menuUpDown.to(StringAndSign, {duration: 0.2, scaleY: 0.10, transformOrigin: 'center top', repeat:1, yoyo:true, repeatDelay:0.1});
// Tl_menuUpDown.to(StringAndSign, {duration: 0.2,scaleY: 1, transformOrigin: 'center top'});

 

Happy tweening ...

Mikel

  • Like 1
Link to comment
Share on other sites

40 minutes ago, mikel said:

Hey @Lars Ejaas,

 

I am not sure if you would like it that way.

 

Happy tweening ...

Mikel

Thanks Mikkel!

That seem to resolve the "sticky" problem when the arrow is turning - brilliant!
I have made a new codePen with the updates.


See the Pen GRZEymr?editors=0010 by lars-ejaas (@lars-ejaas) on CodePen


The initial animation is perfect. 

But I still do not understand why the Tl_menuUpDown behaves this odd when I click the arrow?

Link to comment
Share on other sites

  • 2 weeks later...

@mikeland @GreenSock  - thanks a lot for helping out! Sorry for taking so long to respond!I

 

Got "stuck" with other projects and didn#t get to finish this animation before today.

 

This is the result, a bit different than my initial idea, but I like how it turned out in the end 😉

See the Pen zYqjmvZ by lars-ejaas (@lars-ejaas) on CodePen

  • Like 3
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...