I can't figure out how to rotate and scale a .png at once when the user hovers above it. Right now it scales only when I hover on the picture. I know that scale overwrites the first tranform but I can't figure out how to solve this. I don't think @keyframes are right in this case, because the picture doesn't move from one place to another, or am I wrong? And when I stop hovering it gets bigger again. Without rotating.
Thank you in advance.
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="CSS/stylesheet-7.css"/>
</head>
<body>
<div class="circle">
<img src="Images/hypnotic.png">
</div>
</body>
</html>
Stylesheet:
html {
background: ##99ccff;
}
.circle img {
transition: 6s;
}
.circle img:hover {
transform: rotate(720deg);
transform: scale(0.3);
}