我想制作以下动画:
一个div有两个相同的箭头,当鼠标悬停在第一个箭头上时,它应该向左/右移动。我试图做到这一点,但没有成功。我正在使用两个图像设置背景,但我如何为其中一个图像设置类似gif的动画效果?
.arrow-right2 {
content: "";
background: transparent url(https://i.imgur.com/u7cYXIo.png) 0 -185px no-repeat, transparent url(https://i.imgur.com/u7cYXIo.png) 0 -185px no-repeat;
height: 35px;
position: absolute;
top: -5%;
left: 0;
width: 35px;
}