Beispiel:SVG-text-9b.html
Aus SELFHTML-Wiki
<!DOCTYPE html> <html lang="de"> <head>
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" media="screen" href="./Beispiel:Grundlayout.css"> <style>
svg {
height: 450px;
}
text {
font-family:'Arial'; font-size: 200px; font-weight:bold; font-weight:900; fill: none; stroke-width: 8; stroke-dasharray: 10 50; animation: strokeAni 2s infinite linear;
}
@keyframes strokeAni {
0% { stroke-dashoffset: 60; }
100% { stroke-dashoffset: 0; }
}
- zwei {
stroke-dashoffset:40; animation: strokeAni2 2s infinite linear;
}
@keyframes strokeAni2 {
0% { stroke-dashoffset: 40; }
100% { stroke-dashoffset: -20; }
}
- drei {
stroke-dashoffset:20; animation: strokeAni3 2s infinite linear;
}
@keyframes strokeAni3 {
0% { stroke-dashoffset: 20; }
100% { stroke-dashoffset: -40; }
}
</style> <title>SVG - animierte Randlinie </title>
</head>
<body>
SVG - animierte Randlinie
<svg viewBox="0 0 880 450">
<text id="eins" stroke="#dfac20" x="2%" y="40%">Punkt</text> <text id="zwei" stroke="#337599" x="2%" y="40%">Punkt</text> <text id="drei" stroke="#c82f04" x="2%" y="40%">Punkt</text>
</svg>
</body> </html>