Skip to content

Instantly share code, notes, and snippets.

@tmiz
Created June 3, 2013 13:30
Show Gist options
  • Save tmiz/5698137 to your computer and use it in GitHub Desktop.
Save tmiz/5698137 to your computer and use it in GitHub Desktop.
$(function(){
function startRotate() {
$("#reload").css("-webkit-animation-name", "loadingRotate");
$("#reload").css("-webkit-animation-duration", "1s");
$("#reload").css("-webkit-animation-iteration-count","infinite");
$("#reload").css("-webkit-animation-play-state", "running");
}
function stopRotate() {
$("#reload").css("-webkit-animation-play-state", "paused");
}
$("#start").click(function(){ startRotate(); });
$("#stop").click(function(){ stopRotate(); });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment