Don't restart pop-up animation on page reload
This commit is contained in:
parent
80765cf511
commit
82d4845978
|
@ -45,7 +45,10 @@
|
|||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#popup-window').delay(3000).animate({'margin-right':'0px'},1000);
|
||||
if (sessionStorage.getItem("animationDone") != "done") {
|
||||
$('#popup-window').delay(3000).animate({'margin-right':'0px'},1000);
|
||||
sessionStorage.setItem("animationDone", "done");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue