animation - Animating children element in Polymer -
is possible animate children elements without wrapping them in custom-element has polymer.neonanimatablebehavior
? seems overkill have wrap each animatable element custom element.
you can useneon-animatable
simple container element implementing polymer.neonanimatablebehavior. convenience element use
<neon-animated-pages>
.
<neon-animated-pages selected="0" entry-animation="slide-from-right-animation" exit-animation="slide-left-animation"> <neon-animatable>1</neon-animatable> <neon-animatable>2</neon-animatable> </neon-animated-pages>
Comments
Post a Comment