/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// animation functions zlpFX = { show1: function() { $('div#mainBackground2').fadeOut(3000); $('div#transMoving').animate({ paddingLeft: "180px", paddingTop: "20px" }, 4000).find('h3').fadeOut(2000); setTimeout("zlpFX.show2()", 14000); }, show2: function() { $('div#mainBackground2').fadeIn(4000); $('div#transMoving').animate({ paddingLeft: '220px', paddingTop: '75px' }, 4500).find('h3').fadeIn(6000); setTimeout("zlpFX.show1()", 14000); } }; // now start the animation functions setTimeout("zlpFX.show1()", 11000);
Comments
