Würstchen

HTML
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 600 300"> <symbol id="s-text"> <text text-anchor="middle" stroke-linejoin="round" x="50%" y="50%" dy=".35em"> Würstchen </text> </symbol> <use xlink:href="#s-text" class="text" ></use> <use xlink:href="#s-text" class="text" ></use> <use xlink:href="#s-text" class="text" ></use> <use xlink:href="#s-text" class="text" ></use> <use xlink:href="#s-text" class="text" ></use> </svg>
SCSS
.text { fill: none; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 70 330; stroke-dashoffset: 0; -webkit-animation: stroke 6s infinite linear; animation: stroke 6s infinite linear; font-family: sans; } .text:nth-child(5n + 1) { stroke: #F2385A; -webkit-animation-delay: -1.2s; animation-delay: -1.2s; } .text:nth-child(5n + 2) { stroke: #F2385A; -webkit-animation-delay: -2.4s; animation-delay: -2.4s; } .text:nth-child(5n + 3) { stroke: #f95470; -webkit-animation-delay: -3.6s; animation-delay: -3.6s; } .text:nth-child(5n + 4) { stroke: #F2385A; -webkit-animation-delay: -4.8s; animation-delay: -4.8s; } .text:nth-child(5n + 5) { stroke: #f95470; -webkit-animation-delay: -6s; animation-delay: -6s; } @-webkit-keyframes stroke { 100% { stroke-dashoffset: -400; } } @keyframes stroke { 100% { stroke-dashoffset: -400; } } /* Other styles */ html, body { height: 100%; } body { background: #3aa1bf; background-size: .2em 100%; font: 5.5em/1 Open Sans, Impact; text-transform: uppercase; margin: 0; } svg { position: absolute; width: 100%; height: 100%; }
JAVASCRIPT
Expand for more options Login