Beispiel:SVG-Anwendung-text-4.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!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:SELFHTML-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;
  -webkit-animation: strokeAni 2s infinite linear;
  animation: strokeAni 2s infinite linear;
}
 
@-webkit-keyframes strokeAni {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
 
 
@keyframes strokeAni {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
 
#zwei {
  stroke-dashoffset:40;	
  -webkit-animation: strokeAni2 2s infinite linear;
  animation: strokeAni2 2s infinite linear;
}
@-webkit-keyframes strokeAni2 {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: -20; }
}
 
 
@keyframes strokeAni2 {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: -20; }
}
 
#drei {
  stroke-dashoffset:20;		
  -webkit-animation: strokeAni3 2s infinite linear;
  animation: strokeAni3 2s infinite linear;
}
@-webkit-keyframes strokeAni3  {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: -40; }
}
@keyframes strokeAni3  {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: -40; }
}
 
 
  </style>
  <title>SVG - animierte Randlinie </title>
</head>
 
<body>
<h1>SVG - animierte Randlinie</h1>
 
<svg viewBox="0 0 880 450">
 
  <text id="eins" stroke="#dfac20" x="2%" y="40%">Punkt</text>
  <text id="zwei" stroke="#306f91" x="2%" y="40%">Punkt</text>
  <text id="drei" stroke="#c32e04" x="2%" y="40%">Punkt</text>
 
</svg>

</body>
</html>