CSS3 3d Y-axis

CSS3 3D Y-axis: Y-axis property is represents the position of element along the Y-axis.

<!DOCTYPE html>
<html>
<head>
<style type=“text/css”>
.transforms {
width: 200px;
height: 200px;
padding:10px;
background-color:#ff5722;
color:#FFFFFF;
}

.transforms1 {
width: 200px;
height: 200px;
padding:10px;
background-color:#ff5722;
color:#FFFFFF;
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
}
</style>
</head>

<body>
<div>
<p class=“transforms”> Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. Pellentesque ornare, leo a suscipit hendrerit, massa </p>
<p class=“transforms1”>Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. Pellentesque ornare, leo a suscipit hendrerit, massa </p>
</div>
</body>

</html>

 

RESULT:

css3-3d-y-axis




1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Vikrant Rana Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Vikrant Rana
Guest
Vikrant Rana

Nyc.. Very Useful code.