Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add temporary class to HTML element
$(document).ready(function () {
tmpClass: function (className, duration) {
var elements = this;
setTimeout(function () {
}, duration);
return this.each(function () {
// use of this function
$("#about h1").tmpClass("shake animated", 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment