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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -