Gooey Countdown

HTML
<svg viewBox="-500 -500 1000 1000" width="100%" height="100%" preserveAspectRatio="xMidYMin slice"> <defs> <filter id="goo"> <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur> <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -5" result="goo"></feColorMatrix> <feComposite in="SourceGraphic" in2="goo" operator="atop"></feComposite> </filter> </defs> <circle fill="hsla(0, 100%, 50%, 0.25)" cx="0" cy="0" r="300"></circle> <g filter="url(#goo)"> <text x="0" y="150">10</text> <text x="0" y="150">9</text> <text x="0" y="150">8</text> <text x="0" y="150">7</text> <text x="0" y="150">6</text> <text x="0" y="150">5</text> <text x="0" y="150">4</text> <text x="0" y="150">3</text> <text x="0" y="150">2</text> <text x="0" y="150">1</text> <text x="0" y="150">GO</text> </g> </svg>
CSS
@import url('https://fonts.googleapis.com/css?family=Overpass+Mono:600'); *, *::before, *::after { margin: 0; padding: 0; box-sizing: inherit; } body { display: flex; box-sizing: border-box; background-color: hsl(210, 5%, 12%); } svg { margin: auto; width: 100vmin; } g > text { text-anchor: middle; font-size: 400px; font-family: Overpass Mono, monospace; fill: hsl(210, 100%, 75%); opacity: 0; animation-name: opac; animation-duration: 11s; animation-timing-function: linear; animation-iteration-count: infinite; } g > text:nth-child(1) { animation-delay: 0s; } g > text:nth-child(2) { animation-delay: 1s; } g > text:nth-child(3) { animation-delay: 2s; } g > text:nth-child(4) { animation-delay: 3s; } g > text:nth-child(5) { animation-delay: 4s; } g > text:nth-child(6) { animation-delay: 5s; } g > text:nth-child(7) { animation-delay: 6s; } g > text:nth-child(8) { animation-delay: 7s; } g > text:nth-child(9) { animation-delay: 8s; } g > text:nth-child(10) { animation-delay: 9s; } g > text:nth-child(11) { animation-delay: 10s; } @keyframes opac { 0% { opacity: 0; } 7.5% { opacity: 1; } 10% { opacity: 1; } 15% { opacity: 0; } 100% { opacity: 0; } }
JAVASCRIPT
Expand for more options Login