jquery - Two animation to fadeIn at the same time? -


i'm trying 2 animations fadein onto screen @ same time. impossible because 1 animation waiting until 'typed.js effect' finish before counting animation-delay.

so in order have 2 animationsfadein @ same time have set different animation-delay.

the jsfiddle shows problem:

https://jsfiddle.net/harrydry/p4ev1nj2/13/

merely setting animation delay 2 different types come on in sync not solution. whole animation far more complex , won't work. have used css animations plugin shown here:

<span class="line1 animated fadein">jim jarmusch</span> 

if jquery fadein() option, can use common class selector , animation simultaneous:

html

<div style="display:none" class="test">   test 1 </div> <div style="display:none" class="test">   test 2 </div> <div style="display:none" class="test">   test 3 </div> <div style="display:none" class="test">   test 4 </div> 

js

$(document).ready(function() {   $('.test').fadein('slow'); }); 

fiddle

https://jsfiddle.net/ygzyoyxx/


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -