CSS3 transform and transform-ori
CSS3 transform is a powerful feature that allows you to apply various visual transformations to HTML elements. With transform, you can scale, rotate, skew, and translate elements, giving them dynamic and interactive effects. It allows you to create engaging animations, adjust the size and position of elements, and add depth and perspective to your web design. Transform-origin, on the other hand, is a property that determines the reference point or origin around which the transformation occurs. By default, the origin is set to the center of the element. However, you can change it using transform-origin to create different effects. For example, you can rotate an element around its top-left corner or scale it from the bottom-right corner. In summary, CSS3 transform provides the tools to transform elements in terms of their size, position, rotation, and more. Transform-origin complements transform by allowing you to define the reference point for the transformations. Together, they enhance the visual appearance and interactivity of your web pages.
效果预览区
transform(变形)和transform-origin(变形原点)
-Css3演示