I am a beginner at jQuery, so I had a friend help me write some script for an effect I was having trouble with. Problem, is he is pretty much only familiar with Javascript and doesn't know how to translate this same script into jQuery. Is there a way to write this same code into jQuery?
$(document).ready(function() {
//milliseconds - change this value to modify the delay between
//one text animation and the other
var delay = 1000;
//milliseconds - change this value to modify the single text
//animation speed
var timing = 2000;
animateText('creative_div', timing);
//setTimeout allow to call the function animateText after a
//certain delay (declared above)
setTimeout("animateText('motivated_div'," + timing + ");", delay);
setTimeout("animateText('skilled_div'," + timing + ");", delay * 2);
});
function animateText(divElement, timing) {
//$(divElement).style="visibility: visible";
document.getElementById(divElement).style.visibility = "visible";
$('#'+divElement).effect('drop',
{
direction:"up",
mode:"show",
distance:"400"
},
timing);
}