CSS transform360 rotation outside rotate content does not rotate

Source: Internet
Author: User

Html:

<div class= "WRAP_" >
<ul>
<li class= "One_" ><a href= "" >360 rotate </a></li>
</ul>
</div>

Css:

. Wrap_ ul li:hover{
border-style:dashed;
-webkit-animation:spinaround 9s linear infinite;
-moz-animation:spinaround 9s linear infinite;
Animation:spinaround 9s linear infinite;
}
. Wrap_ ul li:hover a{
-webkit-animation:spinaround1 9s linear infinite;
-moz-animation:spinaround1 9s linear infinite;
Animation:spinaround1 9s linear infinite;
}
@-webkit-keyframes Spinaround {
From {
-webkit-transform:rotate (0deg)
}
To {
-webkit-transform:rotate (360deg);
}
}
@-moz-keyframes Spinaround {
From {
-moz-transform:rotate (0deg)
}
To {
-moz-transform:rotate (360deg);
}
}
@keyframes Spinaround {
From {
transform:rotate (0deg)
}
To {
transform:rotate (360deg);
}
}

@-webkit-keyframes SpinAround1 {
From {
-webkit-transform:rotate (0deg)
}
To {
-webkit-transform:rotate ( -360deg);
}
}
@-moz-keyframes SpinAround1 {
From {
-moz-transform:rotate (0deg)
}
To {
-moz-transform:rotate ( -360deg);
}
}
@keyframes SpinAround1 {
From {
transform:rotate (0deg)
}
To {
transform:rotate ( -360deg);
}
}
Note: 1. The outer div is turning 360, the inner element is inverted-360, and the external story is cancelled, not rotating;
2.rotate rotation properties;
3. Compatibility;

CSS transform360 rotation outside rotate content does not rotate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.