need help, want to spin the image and after 3 sec it must stop with random dergree (from 360 to 10800). it starts spin when I click it from the last position.
when the image stops, it appears an area with RANDOM citation from my massive. it must be something like "spin the bottle"
please help, I've got some code, but don't know how to finish it.
.wheel {
animation: wheel 3s .5s;
animation-fill-mode: both;
}
@keyframes wheel {
from {
transform: rotate(0);
}
to {
transform: rotate(10800deg);
}
}
<head>
<link rel="stylesheet" href="bottle.css">
<script src="bottle.js"></script>
</head>
<img id="wheel" class="wheel" src="https://cdn.iconscout.com/icon/free/png-256/grinning-face-smile-emoji-happy-37705.png">