Jump to content
Search Community

Shivering animation

bcavenagh test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Based on Craig's pen if you wanted to make the shiver a bit more organic you can add some randomness to it like this using invalidate and Carl's idea of passing the value back as a function return.

 

I'd be interested to know if anyone has a suggestion how to do this using modifiers, I ran up against the issue of how would you have the modifiers change the value only on repeat. 

 

See the Pen ejQWaL by Visual-Q (@Visual-Q) on CodePen

 

  • Like 4
Link to comment
Share on other sites

On 8/8/2018 at 6:56 PM, Visual-Q said:

I'd be interested to know if anyone has a suggestion how to do this using modifiers, I ran up against the issue of how would you have the modifiers change the value only on repeat. 

 

That probably isn't the best use case for the ModifiersPlugin. It's ideal for stuff that might change on every animation frame. 

 

For a shiver effect, using scale and rotation might work better. 

 

See the Pen KBbZME by osublake (@osublake) on CodePen

 

 

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