I want the following code to run only once per visit. If i navigate from homepage to different page and come back to homepage, i should not see the effect again. If i refresh the page, i should see the effect. Here is the code :
function stack(){
$('#image').animate({
width: 200,
height: 150,
top: 0,
},1500);
}
$(function(){
stack();
});
Here is what i am doing : http://jsfiddle.net/kq5M4/