Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, November 12, 2012

Codecademy: "Transition with addClass()"


//sample solution to script.js $(function() { $( "#button" ).click(function() { // Add the class of 'transition' with the duration // of 1000 and a callback to callbackFunction as // parameters. $("#writing").addClass("transition",1000,callbackFunction); }); function callbackFunction() { setTimeout(function() { // Remove the 'transition' class here $("#writing").removeClass("transition"); }, 1500 ); } });

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts