Es gibt ein Handsymbol, das ich auf meiner Seite verwende und es richtet sich an drei Bilder. Ich möchte eine Animation auf diesem Symbol, wo es vom Ausgangszustand nach rechts, dann vom Anfangszustand nach links und so weiter gehen soll. Mit anderen Worten, es sollte alle drei Bilder abdecken. Ich selbst habe auch versucht, es Anfangszustand nach rechts bewegt, aber nicht vom Anfangszustand left.Here ist mein Code-Schnipsel unten:Wie man Element vom Anfangszustand nach rechts und dann vom Anfangszustand nach links verschiebt?
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>
Bitte leite mich und danke in voraus!
ok danke soo viel! :) @ Zsawaf –