I need help on how to programmatically add a neon-animation?

187 views
Skip to first unread message

claudio....@gmail.com

unread,
Jun 3, 2015, 8:19:03 AM6/3/15
to polym...@googlegroups.com
Hi,

I have tried to do this, but without success:


<neon-animated-pages id="pages" class="flex" selected="[[selected]]" entry-animation="[[entryAnimation]]" exit-animation="[[exitAnimation]]">

</neon-animated-pages>

Polymer 
(...)
    addAnimation: function(){
         neonanimatable = document.createElement('neon-animatable');
         this.$.pages.appendChild( neonanimatable );
    }
(...)

inspecting the element "pages": this.items not contain the added element (neon-animatable).

It seems that the item is not registered properly...

What am I doing wrong?

Thanks in advance,

Claudio


Reply all
Reply to author
Forward
0 new messages