YUI 3.x Home -

YUI Library Examples: Transition: Showing and Hiding with Transitions

Transition: Showing and Hiding with Transitions

This example shows how to show and hide Node instances.

lorem ipsum dolor sit

Showing a Node

The view of a Node instance can be transitioned by passing true to the show and hide methods.

  1. Y.one('.demo').show(true);
    Y.one('.demo').show(true);

Hiding a Node

The opposite of show, the hide method sets the node's CSS display property to none.

  1. Y.one('.demo').hide(true);
    Y.one('.demo').hide(true);

Copyright © 2011 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings