Skip to content

Instantly share code, notes, and snippets.

@gorobey
Created October 19, 2025 17:33
Show Gist options
  • Save gorobey/21189c5d37a6bcc03dd2276d832b3aec to your computer and use it in GitHub Desktop.
Save gorobey/21189c5d37a6bcc03dd2276d832b3aec to your computer and use it in GitHub Desktop.
podium
<div class="podium podium-silver">
<div class="circle circle-silver"></div>
</div>
<div class="podium podium-gold">
<div class="circle circle-gold"></div>
</div>
<div class="podium podium-bronze">
<div class="circle circle-bronze"></div>
</div>
body {
display: flex;
justify-content: center;
align-items: flex-end;
height: 100vh;
}
.podium {
width: 100px;
position: relative;
margin-left: 7px;
border-radius: 10px;
}
.podium-gold {
height: 160px; /* Adjust height for gold podium */
background-color: grey;
}
.podium-silver {
height: 130px; /* Adjust height for silver podium */
background-color: grey;
}
.podium-bronze {
height: 100px; /* Adjust height for bronze podium */
background-color: grey;
}
.circle {
width: 70px;
height: 50px;
background-color: gold;
border-radius: 5px;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
animation: bounce 0.25s infinite alternate;
}
.circle-silver {
animation-delay: 0s;
}
.circle-gold {
animation-delay: 0.3s;
}
.circle-bronze {
animation-delay: 0.7s;
}
@keyframes bounce {
0% {
bottom: 100%;
height: 45px;
}
50% {
height: 50px;
}
100% {
bottom: 107%;
height: 50px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment