runzelu / blink

blink exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

blink exercise


Languages

Language:JavaScript 59.0%Language:HTML 41.0%