Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 534 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 534 Bytes

Blink exercise

Write a jQuery plugin that makes an element act like a <blink> tag. It should work for any arbitrary speed.

blink demo

http://learn.jquery.com/plugins/basic-plugin-creation/

V1

Make plugin work for selectors that correspond to a single element.

// show/hide every 1000ms
jQuery('.myDiv').blink(1000);
// twice as fast
jQuery('.otherDiv').blink(500);

V2

Make plugin work for selectors that correspond to multiple elements.

jQuery('div').blink(1000);