neon-animation icon indicating copy to clipboard operation
neon-animation copied to clipboard

Web animations code for hero animation

Open PuruVijay14 opened this issue 7 years ago • 6 comments

The hero animation is a tricky animation. Could anyone reproduce its code for Web Animations API. PS:I would prefer if code is a reusable function just like in the original neon animations where we give it config data and everything else.

Thank you

@PuruVijay14

PuruVijay14 avatar Jun 09 '17 19:06 PuruVijay14

Here is an example I was working on a while ago. It should be under wa/hero

ttn is CSS transitions css is CSS keyframes wa is Web Animations

e111077 avatar Jan 09 '18 23:01 e111077

@e111077 Sorry to ping a very old thread. It appears the above Glitch was suspended. Do you know if it's possible to share a remix of it? :)

addyosmani avatar Apr 18 '20 23:04 addyosmani

This is very frustrating that I was not given notice of it being removed. Unfortunately I do not have a copy of the code. Essentially it was implementing "static" animations e.g. fade in those 3 different APIs and attempting the same with "shared" animations that require calculations between two elements using the same API.

If you're looking for hero in particular I essentially used FLIP and for the WA implementation I used the same calculations as in here:

https://github.com/PolymerElements/neon-animation/blob/master/animations/hero-animation.js

I'll contact glitch support to see if I have a chance of recovering the code

e111077 avatar Apr 19 '20 02:04 e111077

scratch that, I was able to recover an old rough draft of the blogpost that was going to be associated with it and I'll scrounge around and slap what I can recover in a gist

e111077 avatar Apr 19 '20 02:04 e111077

Ignore the content as it is from a rough draft of this post. You might want to search the page for "hero" and look at the snippets:

https://gist.github.com/e111077/17720b595707241e1ed361852a03dc23

e111077 avatar Apr 19 '20 02:04 e111077

Thank you, @e111077! I can only imagine how frustrating it must have been to see it being removed without notice.

I appreciate you digging out the rough draft with references. It was very helpful!

addyosmani avatar Apr 19 '20 06:04 addyosmani