在我的页面上有一个手形图标,它指向三个图像。我想要一个动画图标,它应该从初始状态移动到右侧,然后从初始状态移动到左侧等等。换句话说,它应该涵盖所有三个图像。 我曾尝试自己也,它是移动的初始状态,以正确的,但不能从初始状态到left.Here是我的代码片段楼下:如何将元素从初始状态移动到右侧,然后从初始状态移动到左侧?
div#skill .logos {
padding: 20px 0;
}
.logos>img {
margin-right: 10px;
}
.move {
position: relative;
animation: move 2s infinite;
animation-direction: alternate-reverse;
}
/*Animation on hand*/
@keyframes move {
0% {
left: 0px;
right: 0px;
}
50% {
left: 60px;
right: 0;
}
100% {
left: 0px;
right: 60px;
}
}
<img class="move center-block" src="img/icons/hand-finger-pointing-down.svg" width="60" height="60">
<div class="logos text-center">
<img src="img/icons/adobe-photoshop.png" width="50" height="50">
<img src="img/icons/bootstrap-4.svg" width="50" height="50">
<img src="img/icons/Sublime_Text_Logo.png" width="50" height="50">
</div>
请指引我,谢谢你提前!
好的谢谢你哟! :) @zsawaf –