3 jQuery plugin utilizing CSS Animations. Because we all loved the <blink> tag!
5 Modern Blink will use CSS Animations in browsers supporting them and fallback to jQuery Animations in older browsers.
7 **Demo**: http://codepen.io/leonderijke/pen/bkgxi
11 Include Modern Blink after the jQuery library:
14 <script src="/path/to/jquery.modern-blink.js"></script>
17 Or, install via Bower:
20 bower install modern-blink
25 Use Modern Blink like this on the desired elements:
28 $('.js-blink').modernBlink();
33 The following options can be passed to Modern Blink (defaults are shown):
36 $(element).modernBlink({
37 // Duration specified in milliseconds (integer)
40 // Number of times the element should blink ("infinite" or integer)
41 iterationCount: "infinite",
43 // Whether to start automatically or not (boolean)
50 Modern Blink provides the following public methods:
53 $(element).modernBlink('start'); // Will start the animation
54 $(element).modernBlink('stop'); // Will stop the animation
59 Modern Blink will attach the following event listeners to the element:
62 $(element).trigger('modernBlink.start'); // Will start the animation
63 $(element).trigger('modernBlink.stop'); // Will stop the animation
73 * Android browser 4.0+
74 * Internet Explorer 6+