CSS has standard behavior when moving an object as a percentage, which percentage represents the dimensions of its parent container (div).
This is not true when using CSS3 transform: translate3d() . When using percentage values ββfor X, Y, or Z coordinates, the percentage represents the dimensions of the current object , not its parent.
Now the problem should be obvious: if I need to use CSS3 animations and transform: translate3d() to move the current object within the dimensions of its dynamically re-significant parent, I just don't know how to do this. Example: using translate3d(100%, 0, 0) will cause the object to move along the physical width of the current object, and not to its containing block.
Any ideas on how to get the dynamically resizing parent, please? Or how to make the current object to translate inside its parent using hardware accelerated translate3d() ?
The Mozilla development network confirms that: Percentage (in transitions) refers to the size of the bounding box.
Is there any solution?
css css3 css-transforms css-animations translate3d
Bunkai.Satori
source share