Page 1 of 1

Move containers to a specific x / y coordinate.. w/ state

Posted: Wed Mar 19, 2014 1:50 pm
by jaronoff
I have a prototype that has a sidebar. Each of the parts of the sidebar, have a open and a closed state. I have these as different containers, within another master container. When I have one open, the other states of the other containers change to closed. That is fine. However, I want to move the containers that are in a collapsed state down by some Y degree, to account for the opening of another container. I for the life of me cannot figure out how to do this.

Thank you in advance if you have any help!

~Josh

Re: Move containers to a specific x / y coordinate.. w/ state

Posted: Fri Mar 21, 2014 6:01 am
by jaronoff
Does anyone read these? I could really use some help.

Re: Move containers to a specific x / y coordinate.. w/ state

Posted: Mon Mar 24, 2014 7:35 am
by Josh Kristof
Josh,

When you say "move" do you mean have an transition animation show the components actually moving or do you mean simply having it in one position and then another after the state has been activated?

For the later, you would need to have two copies of the component. One at position x, the other at position y. The first one would be visible only when the state was in it's first value. The second copy would be visible only when the state was in it's second value.

Re: Move containers to a specific x / y coordinate.. w/ state

Posted: Tue Mar 25, 2014 12:04 pm
by jaronoff
Hmmm.... OK. So I need to have two states for each of these, and then move them accordingly. That seems to make sense.

Thanks!
~Josh

Re: Move containers to a specific x / y coordinate.. w/ state

Posted: Thu Nov 27, 2014 3:27 am
by anosh
Thanks josh...