পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Wednesday, February 15, 2017

CSS3 - 3D transforms

Using with 3d transforms, we can move element to x-axis, y-axis and z-axis, Below example clearly specifies how the element will rotate

Methods of 3D transforms

Below methods are used to call 3D transforms
Values Description
matrix3d(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n) Used to transforms the element by using 16 values of matrix
translate3d(x,y,z) Used to transforms the element by using x-axis,y-axis and z-axis
translateX(x) Used to transforms the element by using x-axis
translateY(y) Used to transforms the element by using y-axis
translateZ(z) Used to transforms the element by using y-axis
scaleX(x) Used to scale transforms the element by using x-axis
scaleY(y) Used to scale transforms the element by using y-axis
scaleY(y) Used to transforms the element by using z-axis
rotateX(angle) Used to rotate transforms the element by using x-axis
rotateY(angle) Used to rotate transforms the element by using y-axis
rotateZ(angle) Used to rotate transforms the element by using z-axis

X-axis 3D transforms

The following an example shows the x-axis 3D transforms
<html>
   <head>
   
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#myDiv {
            -webkit-transform: rotateX(150deg); 
            
            /* Safari */
            transform: rotateX(150deg); 
            
            /* Standard syntax */
         }
      </style>
      
   </head>
   <body>
   
      <div>
      tutorials point.com
      </div>
      
      <p>Rotate X-axis</p>
      
      <div id="myDiv">
      tutorials point.com.
      </div>
      
   </body>
</html>
It will produce the following result −

Y-axis 3D transforms

The following an example shows the y-axis 3D transforms
<html>
   <head>
   
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#yDiv {
            -webkit-transform: rotateY(150deg); 
            
            /* Safari */
            transform: rotateY(150deg); 
            
            /* Standard syntax */
         }
      </style>
      
   </head>
   <body>
   
      <div>
      tutorials point.com
      </div>
      
      <p>Rotate Y axis</p>
      
      <div id="yDiv">
      tutorials point.com.
      </div>
      
   </body>
</html>
It will produce the following result −

Z-axis 3D transforms

The following an example shows the Z-axis 3D transforms
<html>
   <head>
   
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#zDiv {
            -webkit-transform: rotateZ(90deg); 
            
            /* Safari */
            transform: rotateZ(90deg); 
            
            /* Standard syntax */
         }
      </style>
      
   </head>
   <body>
      <p>rotate Z axis</p>
      
      <div id="zDiv">
      tutorials point.com.
      </div>
   </body>
</html> 
It will produce the following result −

No comments:

Post a Comment