I'd like to have some table cells animate from their automatically laid out relative position, to certain designated absolute positions to highlight them, and then have them return to their position in the table.
In particular I have a Gantt chart with three selectable cells which I would like to tween from its initial...
{top:"0%",left:"0%",width:"auto",height:"auto",position:"relative"}
{top:"0%",left:"0%",width:"auto",height:"auto",position:"relative"}
{top:"0%",left:"0%",width:"auto",height:"auto",position:"relative"}
to a temporary...
{top:"0%",left:"0%",width:"100%",height:"33%",position:"absolute"}
{top:"33%",left:"0%",width:"100%",height:"33%",position:"absolute"}
{top:"66%",left:"0%",width:"100%",height:"33%",position:"absolute"}
...and then tween them back to their initial relative values again.
Is there a Greensock way of doing this?
If I use a regular to(...) tween with the values above, the 'position' value is toggled monolithically to 'absolute', with the top and left set to 0 so the cells jump to the top left corner immediately, then tween their location and width from there, rather than tweening smoothly from their initial (relative) location.
There's probably a workaround, involving JQuery calculating the starting positions for the tween from the rendering engine, but perhaps someone has an elegant way of doing this, as I'm sure I'm not the only one who needs the behaviour.