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.

3d css box

if turn set flat, looks this:

flat box css 3d transform


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -