All the examples are responsive and work for most image aspect ratios. I have provided a series of simple CSS DIV elements to copy and paste into your CSS style sheet to achieve different hover effects on images. A common use is to set max-width: 100%; height: auto; so large images don’t exceed their containers width. Examples might be simplified to improve reading and learning. This scaling takes place in both x and y direction. The following example increases the
element to be three times of its original The scale animation will run on page load as well as hover. the following 2D transformation methods: Tip: You will learn about 3D transformations in the next chapter. The following example rotates the
element counter-clockwise with 20 degrees: The scale() method increases or decreases the size of an element (according to the parameters given for the width and height). The following example moves the
element 50 pixels to the right, Scaling may also occur due to user interaction (zooming). 1em is equal to the current font size. The user agent will scale an image when the page author specifies dimensions other than its natural size. The following example skews the
element 20 degrees along the Y-axis: The skew() method skews an element along the X and Y-axis by the given angles. The following example increases the
element to be two times of its original width: The following example decreases the
element to be half of its original width: The scaleY() method increases or decreases the Let the user resize only the height of a
element: Let the user resize only the width of a
element: In many browsers,