Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 30 / 8734%
Effects & Animation1/8

show() and hide()

The two one-liners everyone learns first.

// every call returns the jQuery object — chain forever$('#box')select.addClass('active')DOM.css('color','white')CSS.slideDown(200)effect.fadeOut(400)effect// return value after every call:jQuery({ 0: <div#box>, length: 1, prevObject: … })
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?