css动画keyframes

admin
2021-05-10
20

css动画

keyframes

.banner .scroll_img{

position: absolute;

bottom: 24px;

z-index: 2;

color: #fff;

left: 50px;

animation: mymove 1.5s infinite;

}

@keyframes mymove{

0%   {bottom:20px;}

50%  {bottom:10px;}

100% {bottom:20px;}

}


@-webkit-keyframes mymove{

0%   {bottom:20px;}

50%  {bottom:10px;}

100% {bottom:20px;}

}