Set the variable on hover instead of the transform directly: ```css .bubble:hover { --scale: 1.062
Set the variable on hover instead of the transform directly:
@keyframes float {
from {
transform: rotate(0deg) translateX(10px) rotate(0deg) scale(var(--scale, 1));
} to {
transform: rotate(360deg) translateX(10px) rotate(-360deg) scale(var(--scale, 1));
}
}