Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 33 / 8738%
Effects & Animation4/8

fadeToggle() and fadeTo()

Opacity-based toggle and direct opacity set.

// 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?