Skip to content

Instantly share code, notes, and snippets.

@ds84182
Last active April 13, 2016 19:20
Show Gist options
  • Save ds84182/2c6fd73f3c4522519586 to your computer and use it in GitHub Desktop.
Save ds84182/2c6fd73f3c4522519586 to your computer and use it in GitHub Desktop.
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