上效果图:
实现从左侧到右侧,图形从圆-正方形-圆,并且颜色变化的过程:
<style>
div{
width: 100px;
height: 100px;
border-radius: 100%;
background-color: pink;
position: absolute;
top: 50%;
left: 50%;
animation: move 2s ease 0s infinite alternate;
-webkit-animation: move 2s ease 0s infinite alternate;
}
@keyframes move{
0%{
left: 0;
background-color: pink;
}
47%{
left: 680px;
background-color: pink ;
bord