sequential letter fading not working in sequence, all fade in at same time jQuery -


i'm trying fade in string of letters, i'm not sure why aren't fading in @ different times.

<script> window.onload = function() { $( "#a" ).fadein( "500" ); $( "#b" ).fadein( "600" ); $( "#c" ).fadein( "700" ); $( "#d" ).fadein( "800" ); $( "#e" ).fadein( "900" ); $( "#f" ).fadein( "1000" ); $( "#g" ).fadein( "1100" ); $( "#h" ).fadein( "1200" ); $( "#i" ).fadein( "1300" ); $( "#j" ).fadein( "1400" ); $( "#k" ).fadein( "1500" ); $( "#l" ).fadein( "3600" ); } </script> 

when add time 500, 600, speed of fading change start fading @ same time. code should be

$(document).ready(function () {       $("#a").fadein( 500,function ()      {         $("#b").fadein( 500,function ()          {                 $("#c").fadein(500,function ()                  {                   });          });      }); }); 

added callback function fade 1 after other


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -

c# - SharpSsh Command Execution -