Neon animation is deprecated in polymer 2.0 so Does that mean we should stop using neon-animated-pages?

248 views Asked by At

Under the changes in Polymer 2.0 section of the README, it states this element is now deprecated.Neon Animation Update

  • Does that mean we should stop using neon-animated-pages?

  • If web animation api is replacement then how use "shared Transition" in it.


Neon animation divided into 2 part

  • animation effect (deprecated)
  • animation behaviour (deprecated..?)

Is Neon-animation-behaviour is also deprecated..?

1

There are 1 answers

3
Niklas On

About two month ago Polymer released an article regarding the neon animation.
To sum it up:

  • They are not planning on maintaining the package anymore.
  • If you are using Polymer elements that are depending on neon-animation they will replace them for you.
  • If you're using neon-animation directly, you should start planning to eventually move off it.

For new projects the recommended approach would be to use

  • CSS Keyframe Animations
  • Web Animations API
  • CSS Transitions



I in person would go with css transitions to achieve a page-transition but thats definitely just one way to do it.
You can find how to use CSS transitions here.
Some nice examples of page transitions can be found here.