Created
December 22, 2023 01:47
-
-
Save farithadnan/0d4042fadfa64088874a09da66c6f5cd to your computer and use it in GitHub Desktop.
Rotating and Shrinking Emoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rotating-emoji { | |
display: inline-block; | |
transition: transform 0.3s ease-in-out; | |
} | |
.rotating-emoji:hover { | |
animation: rotateAndShrink 2s ease-in-out infinite; | |
transform: scale(0.8); | |
} | |
@keyframes rotateAndShrink { | |
0%, 100% { | |
transform: rotate(0deg) scale(1); | |
} | |
50% { | |
transform: rotate(180deg) scale(0.5); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Rotating and Shrinking Emoji</title> | |
</head> | |
<body> | |
<span class="rotating-emoji" style="font-size: 2em;">🌟</span> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment