javascript - The transition doesn't work on the .line elements, they change property but the transition is not applied. Is there any ways to enable it? -


i'm trying create width animation on .line div's, defined 70%/40% 10%. i've added transition .line class (and i've tried add everywhere), , doesn't work, width changing, no transition used. how 1 enable transition on class dynamically added?

i'm using uilang dynamically add .hide class, when .more button has class .hide, lines change width. i've added codepen see whats going on. (i've pulled part current project, sorry ugliness). if click less button, .more button appear again.

  <a class="more">more     <div class="more-line">       <div class="line line-70"></div>       <div class="line line-40"></div>       <div class="line line-40"></div>     </div>   </a> 

remove display: block; line 36


Comments

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

java - Get more than One value and display it -