箭头动态流动什么样
修改图片中所述错误........
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>css3六方块绕Y轴旋转</title> <style> html,body{ perspective: 1000px; } .container{ width: 500px; height: 500px; transform-style: preserve-3d; margin:100px auto; position: relative; animation: move 10s linear infinite; } @keyframes move { from{ transform: rotateY(0deg) } to{transform: rotateY(360deg)} } .container:hover{ animation-play-state: paused; } .square{ position: absolute; width: 200px; height: 200px; left: 150px; top:150px; background-color: #f05e6f; opacity: 0.3; font-size: 40px; color: #FFFFFF; font-family: "微软雅黑", Arial, Helvetica, sans-serif; line-height: 200px; text-align: center; } #squ-1{ transform: rotateY(0deg) translateZ(250px); } #squ-2{ transform: rotateY(60deg) translateZ(250px); } #squ-3{ transform: rotateY(120deg) translateZ(250px); } #squ-4{ transform: rotateY(180deg) translateZ(250px); } #squ-5{ transform: rotateY(240deg) translateZ(250px); } #squ-6{ transform: rotateY(300deg) translateZ(250px); } </style> </head> <body> <div> <div id="squ-1">one</div> <div id="squ-2">two</div> <div id="squ-3">three</div> <div id="squ-4">four</div> <div id="squ-5">five</div> <div id="squ-6">six</div> </div> </body> </html>
欢迎采纳
你使用transition:属性1 时间,属性2 时间,属性3 时间;这种方式,我刚试过,可以的。我把代码给你。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>transition属性</title>
<style type="text/css">
div{
width: 200px;
height: 200px;
background-color: green;
transition:width 2s linear,height 2s linear,background-color 2s linear;
-moz-transition:width 2s linear,height 2s linear,background-color 2s linear; /* Firefox 4
*/
-webkit-transition:width 2s linear,height 2s linear,background-color 2s linear; /* Safari
和 Chrome */
-o-transition:width 2s linear,height 2s linear,background-color 2s linear;
}
div:hover{
background-color: #f60;
width: 400px;
height: 400px;
}
</style>
</head>
<body>
<h1>transition属性</h1>
<div></div>
</body>
</html>
IE浏览器 -ms-transition
Safari and Chrome浏览器 -webkit-transition
在效果上,这里的0带不带单位都是一样的,都能实现。
是的,我也觉得
水经验的,你好
谢谢你的支持:)也希望那个能够关注我的前端Canvas课程:《绚丽的倒计时效果——Canvas绘图与动画基础》和《Canvas绘图详解》