.fadeOut() (since jQuery 1.0) hides matched elements by fading them to transparent (opacity 0). When opacity reaches 0, display is set to none so the element leaves the layout. Returns the jQuery object for chaining.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
$("#book").fadeOut(); // default 400 ms
$("#book").fadeOut("slow", function () { /* done */ });
$("#panel").fadeOut(600, "linear");
// Fades opacity → 0 · then display: none
// Unlike .fadeTo() — that does not hide
Call
What it does
.fadeOut() Hide Elements by Fading Out
Learn jQuery .fadeOut(): hide visible elements by animating opacity to transparent since 1.0, duration and easing defaults, per-element callbacks, display:none after fade, and compare with hide, fadeIn, fadeTo, and fadeToggle.
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Parameters
Parameter
Description
Step 1
Select the target ($("#book")).
Step 2
Ensure it is visible (already shown, or call .show() first).
Step 3
On a user action, call .fadeOut() (optional duration / easing / complete).
Return Value
Return Value
Description
Value / undefined
Getters usually return a value from the first matched element, or undefined when nothing applies.
jQuery Examples
Example 1 — Basic Slow Hide
From the jQuery docs: fade out a visible element on click with a complete callback.
jQuery
$("#clickme").on("click", function () {
$("#book").fadeOut("slow", function () {
// Animation complete.
});
});
Click "jacket" → fades over 1000 ms
Log shows 'jacket' has faded!
Span is removed from the DOM
How It Works
Target. Only content spans (not the log) are clickable.
fadeOut. That span fades over 1 second.
Complete. Reads the text, updates the log, then .remove().
Frequently Asked Questions
.fadeOut() hides matched elements by fading them to transparent. It animates opacity toward 0, then sets display to none so the element no longer affects page layout. Use it for a smooth exit instead of an instant .hide().
1) .fadeOut([duration] [, complete]) — optional duration and completion callback. 2) .fadeOut(options) — an options object with duration, easing, queue, step, progress, and Promise-style callbacks. 3) .fadeOut([duration] [, easing] [, complete]) — positional easing since jQuery 1.4.3.
.hide() removes elements instantly with no transition. .fadeIn() is the opposite reveal — unhides and fades to full opacity. .fadeTo() animates to a target opacity but does not hide. .fadeOut() both fades to transparent and sets display:none.
Duration is in milliseconds. Default is 400 ms when omitted. The strings "fast" (200 ms) and "slow" (600 ms) map to preset speeds, the same as other jQuery effect methods.
Once per matched element when that element’s fade finishes — not once for the whole set. Inside the callback, this is the DOM element. Use .promise().done() when you need a single callback after every element completes.
No. To avoid unnecessary DOM work, .fadeOut() will not hide an element that is already considered hidden (typically display:none). Calling it on hidden content produces little or no visible effect.