Skip to content

Some syntactic sugar for adding and removing a class within a set amount of time.

Notifications You must be signed in to change notification settings

moudy/jquery.flash-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

jQuery.flashClass

Some syntactic sugar for adding and removing a class within a set amount of time.

$('p').flashClass();

// equivalent to the following 2 lines
$('p').addClass('flash');
setTimeout(function () { $('p').removeClass('flash'); }, 500);

// you can pass in options to override className and/or delay
$('p').flashClass({ className: 'highlight', delay: 1000 });

About

Some syntactic sugar for adding and removing a class within a set amount of time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published