Last active
December 10, 2015 05:18
-
-
Save yalab/4386412 to your computer and use it in GitHub Desktop.
jsで点滅させる
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 lastSheet = document.styleSheets[document.styleSheets.length - 1]; | |
if(lastSheet){ | |
lastSheet.insertRule("@-webkit-keyframes blink { from { opacity: 1.0; } to { opacity: 0.6; } }", lastSheet.cssRules.length); | |
} | |
var blink = {webkitAnimationName: 'blink', | |
webkitAnimationDuration: '1s', | |
webkitAnimationIterationCount: 'infinite', | |
webkitAnimationTimingFunction: 'ease-in-out'}; | |
$("#node").css(blink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment