How can I use Hype to have an object wiggle or shake? I want the beginning and end points of the object to remain the same, but just want to to provide some back and forth movement. Along the lines of what can be done with CSS https://bit.ly/3bViMSt or Greensock https://bit.ly/2V8eLTT
For Shake: You would just need to recreate these (chaotic) keyframes in Hype: Press Record, move slightly, rotate slightly, advanced timeline a couple frames, and do it again. I would create this on an additional timeline. Copy + paste the initial keyframes so they are the same as your ending keyframe and have the entire animation loop.
Wobble could be done with a custom easing transition, it is like a bounce, but you would change the point of origin for rotation (hold ⌘ + drag the transform origin point) so you can have the object teeter on a different axis than the center. But a wobble is a personal matter, and you should play around with easing transitions to perfect it.
I’m understanding how and why with the custom easing. What I don’t understand is how to apply the custom easing to wobble the element. I mean, if I have different z-rotation values at start and end, I can apply the custom easing. But I want my element’s z-rotation to be the same before and after the animation occurs. So how does this work? Hype file attached, if it makes it easier to explain. wobble element.zip (13.5 KB)
If Hype sees the same start and end value, it assumes there is no animation. (It would be a good enhancement to no longer have this assumption especially in the case of the new Math Equations timing functions!)
For now you’d need to either do this as a keyframe animation, or have a slightly different start/end value to register if you are going to use a pure timing function approach.