<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>test</title>
<style>
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
}
.main {
width: 100%;
text-align: center;
position: fixed;
top: 20%;
}
.main img {
width: 100px;
animation: mymove 3s infinite;
-webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
}
@keyframes mymove {
from {
transform: rotate(0deg);
-ms-transform: rotate(0deg); /* IE 9 */
-webkit-transform: rotate(0deg); /* Safari and Chrome */
}
to {
transform: rotate(360deg);
-ms-transform: rotate(360deg); /* IE 9 */
-webkit-transform: rotate(360deg); /* Safari and Chrome */
}
}
</style>
</head>
<body>
<div class="main">
<div class="image"><img src="./logo1.png" /></div>
</div>
</body>
</html>
css3动画
最新推荐文章于 2024-11-15 19:51:40 发布