I have a script that I would like to delay from running for 2 seconds maybe 3 then execute, at the moment I use document.ready is there a way to add a time value so its still document.ready but add 3 seconds.
$(document).ready(function() {
function bikepass2(){
bike.css('left', startPos);
bike.animate({left: -450}, 8000, 'linear')
};
var screenWidth = $(document).width();
var startPos = screenWidth;
var bike = $('#bike2')
bikepass2();
setInterval(function() {
bikepass2();
}, 15000);
});