jQuery UI Blind Effect

The jQuery UI blind effect hides or reveals an element as though a blind is being pulled across it.

This is a jQuery UI effect, so the page using it must load jQuery UI in addition to jQuery.

Syntax and Main Options Top ↑

The general form is $(selector).effect(effectName, options, duration, complete). The options available depend on the selected effect.

  • direction: Controls the pull direction. Common values are "up", "down", "left", "right", "vertical" and "horizontal". The default is "up".
  • duration: Use a millisecond value or a duration name such as "fast" or "slow".
  • complete: A callback function that runs after the effect finishes.

Examples Top ↑

Basic syntax

$( "#element" ).effect( "blind", { direction: "left" }, 600, function () {
    // Runs after the effect finishes.
});

Default blind effect

$( "#d1" ).effect( "blind" );

Run the effect from a button

$( "#b1" ).on( "click", function () {
    $( "#d1" ).effect( "blind" );
});

Add duration and a callback

$( "#b1" ).on( "click", function () {
    $( "#d1" ).effect( "blind", 6000, function () {
        alert( "The blind effect has finished." );
    });
});

Open the Blind Effect demo →

View demo of all jQuery UI effects →

When to Use This Effect Top ↑

Use this effect when the animation itself helps explain a state change or draws attention to an element. For routine interfaces, keep motion short and purposeful so it does not distract from the content.

Next effect →

Back to jQuery Effects · jQuery Tutorials Home






plus2net.com






✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer