2
I have a div
with the id="origem"
which contains an image of a star, how can I move the image to the span
with the id="destino"
using an animation of for example 2 seconds, the path has to be in a straight line or can make a curve? It can also be in a loop as in the image?
img {
width: 2rem;
height: 2rem;
}
<body>
<div>fazer imagem ficar na direita desta frase:
<span id="destino">
</span>
</div>
<br><br><br><br><br><br><br>
<div id="origem">------------------------------------------------------------------------
<img src="https://image.flaticon.com/icons/svg/148/148841.svg" alt="">
</div>
</body>
Strongly related: How to make SVG or CSS animation of a Text walking the way?
– Woss
Vik stackoverflow snippet only accepts image if url is https ;)
– hugocsl