Created
December 24, 2023 19:08
-
-
Save amendezcabrera/043476c98ec3ae555729329077187f01 to your computer and use it in GitHub Desktop.
Merry Christmas
This file contains 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>Merry Christmas</title> | |
<style> | |
body { | |
background-color: #ffe0e0; | |
margin: 0; | |
height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
} | |
.christmas-scene { | |
text-align: center; | |
} | |
.merry-christmas { | |
font-family: 'Cursive', sans-serif; | |
color: green; | |
font-size: 48px; | |
animation: colorChange 5s infinite, move 5s infinite; | |
margin-bottom: 20px; /* Spacing between text and tree */ | |
} | |
@keyframes colorChange { | |
0%, 100% { color: green; } | |
50% { color: red; } | |
} | |
@keyframes move { | |
0%, 100% { transform: translateY(0); } | |
50% { transform: translateY(-20px); } | |
} | |
.christmas-tree { | |
display: inline-block; | |
} | |
.tree-part { | |
width: 50px; | |
height: 50px; | |
background-color: green; | |
margin: 10px auto; | |
transform: rotate(45deg); | |
} | |
.trunk { | |
width: 20px; | |
height: 40px; | |
background-color: brown; | |
margin: 0 auto; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="christmas-scene"> | |
<div class="merry-christmas">Merry Christmas</div> | |
<div class="christmas-tree"> | |
<div class="tree-part"></div> | |
<div class="tree-part"></div> | |
<div class="tree-part"></div> | |
<div class="trunk"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment