mardi 21 avril 2015

3D CSS Transform element positioning

I have a basic 3D card that flips when you press a button (Using the CSS perspective property on the parent and then rotateY on the two sides.

I'm just wondering how the positioning for these elements work, as whenever I adjust the font-size (in em's) the cards go further away from the actual parent.

I must have overlooked some kind of important property.

Here's the pen.

Aucun commentaire:

Enregistrer un commentaire