Skip to content

Instantly share code, notes, and snippets.

@yalab
Last active December 10, 2015 05:18
Show Gist options
  • Save yalab/4386412 to your computer and use it in GitHub Desktop.
Save yalab/4386412 to your computer and use it in GitHub Desktop.
jsで点滅させる
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