Vertical Collapse on elements using directions

Hey
I would like to have the ability to collapse elements vertically and also set the direction on the collapse.

Let’s say I have a box and I want that to expand vertically from the left side on my page and when collapsed to the reverse.

$w("#box1").expand("vertical", "LeftToRight");

That would expand it vertically from the left side to it’s size. Then when collapsing…

$w("#box1").collapse("vertical", "RightToLeft");

This would increase the ways we can do more advanced UI in our projects.

2 Likes

Hi Andreas

I am not sure if it would work on your project but you can try doing both hide and collapse on load and also do both on event for show and expand. It works for me.

You can also use the animation for hide and show.

DA