In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to write the css3 code of the mouse after rotating elements". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The code is "element: hover {animation: name time} @ keyframes name {100% {transform:rotate (rotation angle);}}"; the hover selector sets the style of the mouse pass, and animation and @ keyframes animate the element.
The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.
What is the css3 code of the element rotated over the mouse?
A special style that hover adds when you mouse over a link
The hover selector is available for all elements, not just links.
You can use the animation attribute to create an element binding animation. The animation attribute can control the duration and frequency of the animation. The syntax is as follows:
Animation: name duration timing-function delay iteration-count direction
When the value of the attribute is set to "infinite", the animation is played indefinitely so that it can be rotated all the time when we bind the element to the rotation animation.
Then animate the rotation action through the @ keyframes rule.
Examples are as follows:
Div {width:100px; height:100px; background-color:pink;} div:hover {animation:fadenum 5s;} @ keyframes fadenum {100% {transform:rotate (360deg);}}
Output result:
This is the end of the content of "how to write the css3 code of the element after the mouse is rotated". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.