Last active
April 13, 2016 19:20
-
-
Save ds84182/2c6fd73f3c4522519586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.body.appendChild(document.createElement('script')) | |
script.src='https://code.jquery.com/jquery-1.12.0.min.js'; | |
script.onload = function() { | |
var value = 360; | |
$("body") | |
.css("transition", "-webkit-filter 1s linear") | |
.css("-webkit-filter", "hue-rotate(0deg)").on("transitionend", function() { | |
value += 360 | |
$("body").css("-webkit-filter", "hue-rotate("+value+"deg)") | |
}); | |
setTimeout(function() { | |
$("body").css("-webkit-filter", "hue-rotate("+value+"deg)") | |
}, 200) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment