In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shares with you about which attributes can achieve the translation effect in css3. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The attribute that can achieve the panning effect in css3 is "transform". The transform attribute can be used with the translate () function to translate the element, with the syntax "element {transform:translate (horizontal translation value, vertical translation value);}".
The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.
In css3, you can use the transform attribute with the translate () function to achieve the element translation effect.
The transform attribute applies a 2D or 3D transformation to the element. This attribute allows us to rotate, scale, move, or tilt the element.
The translate () function is used to define the 2D transformation of an element. That is, the effect of translation.
The syntax is as follows:
Element {transform:translate (horizontal translation value, vertical translation value);}
Examples are as follows:
Document div {width:100px; height:100px; border:1px solid # 000; transform:translate (100pxMagol 100px);}
Output result:
When the transform:translate (100pxrem 100px); style is not added
Add transform:translate (100pxMagol 100px); after the style:
Thank you for reading! About "which attribute can achieve translation effect in css3" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.