I have a short CSS-based animation that I want to play before the link follows (the map that pops up to the page loads gets thrown after a click). However, the page is currently loading too fast. I want to be able to briefly defer href from following.
Here is what I have:
$(document).ready(function() {
$("#card").css("top","0px");
$(".clickit").click(function() {
$("#card").css("top","-500");
});
});
The first line imposes a map on the page load. After that, a click is called that modifies the CSS, but, as I said, there should be some delay because the page loads immediately, and not after the animation. The modified CSS is as follows:
#card {
width: 400px;
height: 500px;
position: relative;
top: -500px;
-webkit-transition:all .5s;
}
(yes, I know this is only webkit)
, 2008 , , jQuery , , .
!