Skip to content

Instantly share code, notes, and snippets.

@zeph1e
Created May 13, 2025 14:26
Show Gist options
  • Save zeph1e/8c65b77cb26064dff206b09a14a1fb3c to your computer and use it in GitHub Desktop.
Save zeph1e/8c65b77cb26064dff206b09a14a1fb3c to your computer and use it in GitHub Desktop.
clip-path animation
<html>
<style>
@keyframes liftoff {
0% {
clip-path: inset(0px 200px 0px 0px);
}
10% {
clip-path: inset(0px 0px 0px 0px);
}
100% {
clip-path: inset(0px 0px 0px 0px);
}
}
.back {
background-color: black;
width: 200px;
height: 200px;
text-align: center;
border-radius: 100px;
}
.front {
font-weight: bold;
color: white;
font-size: 120px;
animation: liftoff 3s infinite;
}
</style>
<body>
<div class="back">
<div class="front">
&#x2713;
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment