JavaScript and the DOM


In order to fade in the skillset element, we can use a the jQuery function named fadeIn.

True to its name, fadeIn will fade an element in over a period of time in milliseconds. It looks like this:

  1. We must start with an element that is not currently displayed on the page.
  2. Just like before, we can attach fadeIn directly to a jQuery selector.
  3. Within fadeIn's parentheses, we can specify how long we want the fade to last in milliseconds. 400 is the default.
  4. The example code will fade in the '.example-class' element over 0.4 seconds.
Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.