Neon-Animated-Pages Animation Size with Polymer -
i'm working on app using polymer. app uses neon-animated-pages
move between views , tabs. have plunk here. relevant code can seen here:
<div style="width:33%; background-color:lightgrey;"> <paper-button on-click="onitem1click">item 1</paper-button> <paper-button on-click="onitem2click">item 2</paper-button> <paper-button on-click="onitem3click">item 3</paper-button> <br /><br /><br /><br /> </div> <div id="contentarea" style="width:67%; padding:12px;"> <neon-animated-pages selected="[[ selectedindex ]]" entry-animation="slide-left-animation" exit-animation="slide-left-animation"> <section> <item-1></item-1> </section> <section> <item-2></item-2> </section> <section> <h4>item 3</h4> <p>this information item #3.</p> </section> </neon-animated-pages> </div>
when click paper-button
or paper-tab
, new content gets animated in. however, content leaving, animates left on top of grey navigation area. want content animate left. however,i not want cover "item 1", "item 2", , "item 3" in process. neon-animated-pages
element uses whole screen animations instead of area confined to, in case "contentarea" div
. i'm not sure how fix though.
here go: http://plnkr.co/edit/loqnbtdzjkr0xigxsoym?p=preview
add overflow-x: hidden;
67% width div
.
i had encountered same problem on this codepen while back. note commented-out overflow-x on line 7 of css file.
Comments
Post a Comment