-
-
Save am2222/1a0be4b2ff57dd303dbc25060e6a7e15 to your computer and use it in GitHub Desktop.
Rotating emoji globe
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> | |
<head> | |
<title>Globe Emoji Animation</title> | |
<style>h1 { font-size: 70vh; text-align: center; padding: 0; margin: 0 }</style> | |
</head> | |
<body> | |
<h1>π</h1> | |
<script> | |
const globeEmojis = ['π', 'π', 'π']; | |
const h1 = document.querySelector('h1'); | |
let i = 0; | |
setInterval(() => { | |
h1.innerHTML = globeEmojis[i++ % globeEmojis.length]; | |
}, 100); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment