tinmagpie / deepdev

Deeper and deeper, where no browser has gone before...
113 stars 19 forks source link

Calculate Win: Vomiting Shrimp #18

Closed rachelnabors closed 9 years ago

rachelnabors commented 9 years ago

Considering making this a transition, not an animation.

#creature_vomiting-shrimp1's animation runs every time it’s scrolled into view thanks to the .in-view class added to its parent div via main.js.

The animation-name for this: escapingGloriously

Users are to "rewind" the animation to its starting point.

Patrick Brosset might have ideas on how to test for this.

It may be easier to use transitions. Or animations. Do tell.

rachelnabors commented 9 years ago

This is now a duplicate. I'll update it.

potch commented 9 years ago

I'm checking for the fact that the shrimp is in-view and has been reset to its initial position. Works pretty well!