Re: DIV Layer Expand and Collapse
- Hi Adam,
This functionality is very simple, just use:
overflow: hideen for your DIV element, and then you can get the real
height or width using: el.scrollHeight, el.scrollWidth, and then just
use the YUI animation control to animate your DIV.
Caridy (caridy at gmail.com)
> Hello everybody.
> I've been looking all over the Yahoo! UI Library site but can't seem
> to find an example or package that does the following commonly seen
> I have a DIV layer that I want to animate the vertical opening and
> closing of with an gif image when the user clicks it. Think of it as a
> slider, or accordian, or expand/collapse behavior.
> Anybody have an example of this?