Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
mixin drawCantorSet(n) if n > -1 span +drawCantorSet(n-1) +drawCantorSet(n-1) +drawCantorSet(7)
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } body { display: flex; align-items: flex-end; height: 100svh; overflow: hidden; background-image: linear-gradient(#001, #4ab 75%, #bf9 75%, #010); } span { display: flex; align-items: flex-end; flex: 1; gap: 10%; height: 12vh; margin-bottom: 1vh; border-radius: 5px 5px 20px 20px; background-color: #210; &:last-child:not(:only-child) { transform: skew(2deg) rotateZ(-3deg); animation: rise 2s both, stir 4s 3s infinite alternate; } &:first-child:not(:only-child) { transform: skew(-2deg) rotateZ(3deg); animation: rise 2s both, stir 6s 3s infinite alternate; } } :empty { background-color: #2405; box-shadow: 0 3vh 1vh 0.5vh #050; &::after { right: 0; } &::before, &::after { content: ""; position: absolute; height: 1vmin; width: 1vmin; top: 0; border-radius: 50%; background-color: #e16; box-shadow: 0 1vh 1vh 0.5vh #dc2; } } @keyframes rise { to { margin-bottom: 10vh; } } @keyframes stir { 100% { transform: translateY(2vmin); } }
console.log("Event Fired")