css - Why would you use Transform-style: preserve-3d over z-index? -
in example in website website link show frog rotated on green background. 1 transform-style: flat; covered other element, transform-style: preserve-3d; goes above other elements.
the same effect accomplished z-index. why use 1 on other?
here's example of cube that's transformed. can see transform because has 100px border.
if turn set flat, looks this:
Comments
Post a Comment