The Transform module is a powerful tool for creating captivating 2D and 3D animations, adding depth and motion to your web pages.
Head over to Style Panel > Transform on the right-hand side of your screen to start playing with this module.
The Transform section offers four different types of transformation:
As the name suggests, the Move Transform lets you shift your element across the page without affecting any of the other elements.
Similar to Rotate, you must apply 3D Transformation and set the Perspective for Move Z to have any effect.
Using Rotate Transform, you can tilt your element by any given angle.
The two toggles below Z Rotate allow you to tilt the element 15 degrees clockwise or anti-clockwise respectively.
On its own, rotating along the X or Y axes will result in a flat, 2D Effect, and rotating along the Z axis will have no effect at all. To get a 3D effect, you’ll have to do the following:
Doing this should switch the Move effect to a 3D perspective instead of simply 2D.
The Scale Transformation lets you increase or decrease the size of an element.
💡 Tip: Click on the link icon to link X and Y values which will cause elements to scale proportionately.
You can also use the two buttons below the Z-axis toggle to proportionately scale your element to be bigger or smaller.
Using the Skew feature you can stretch your element.
Fun Fact, know that for Skew, 3D Perspective doesn’t affect any change.
You can define the point from which the transformation originates. By default, this point is at the element's center. You can set the origin using the grid model or the input fields on the right.
Enabling 3D Transformation is where the magic begins. It allows you to set the Perspective, which represents the 3D view on a 2D plane. This Perspective provides depth to 3D Compatible transformations.
Perspective can be set in two ways under the Distance section:
To set the Self Perspective:
As previously mentioned, this distortion will be relative to this element and because of this nature, Self Perspective works best when you’re transforming a single element.
Similarly, to set the Child Perspective:
As you may know, this distortion is relative to the viewport. This means that the parent element acts kind of like a camera through which the elements are viewed.
In contrast to Self Perspective, Child Perspective is more realistic and is especially great when transforming multiple elements.
Following this, you can set your Perspective’s origin, i.e. at which position the user is looking at the element. Similar to Transformation Origin, you can use the grid model to set this or use the input fields on the right to define your own values:
Using the Scale Transformation, you scale an element along the X, Y, and Z Axes. But unlike Scale X and Y, the true effect of Scale Z is not as obvious on its own. But in the right setting, Scale Z is a highly powerful feature.
As mentioned earlier, you will notice its true effect when applied to a parent element that contains a group of child elements with varying Z values (for Move or Rotate).
Let’s now go over exactly how you can make this feature work.
Consider a scenario where you have a Section containing a Container, which, in turn, holds three SVG Icons.
To grasp the concept, follow these steps:
Basically, increasing or decreasing the Scale Z of a parent element will increase or decrease all varying Z values of the child elements be it Move Z or Rotate Z.
Transform offers exciting possibilities for interactive animations. Let's create a turning effect on images when hovered over:
Now, let's turn our images so that they face away from the user. Do the following to achieve this:
Your images should now appear turned to one side. Let's add the animation:
The images should now turn towards you when hovered over. However, the animation might look abrupt. Here's how to fix it:
And this is just one example of 3D Animation and you can apply the same concept to add any kind of animation to any elements of your choice.
Was this page helpful?
Our website uses cookies to improve your browsing experience on our website. By continuing to use this website, you agree to their use. For details, please check our Privacy Policy.
Experience Droip in Action – Explore a live-built page and see the power of our builder in action.
Explore Live