2

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..?

Tushar Acharekar
  • 880
  • 7
  • 21

1 Answers1

0

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.

Niklas
  • 1,142
  • 16
  • 33
  • My main aim is to use "NeonSharedElementAnimatableBehavior" and "NeonSharedElementAnimationBehavior", but as Neon-animation is deprecated how we can achive this Behaviors along with "Web Animation API". _I want to achive effect likeAndroid Material Animation: Shared Element Transition_ – Tushar Acharekar Sep 21 '17 at 10:32
  • I added a link in the end of my answer – Niklas Sep 21 '17 at 13:00
  • thanks @Niklas .... Above link are seems to be helpful....! i will try this to develope with Web animation API. – Tushar Acharekar Sep 21 '17 at 14:19