Beispiel:SVG-CSS-animation-4.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:SELFHTML-Beispiel-Grundlayout.css" >
<style>
svg {
height: 18em;
}
path {
stroke: #c82f04;
fill: none;
stroke-width: 1;
stroke-dasharray: 900 900;
animation: strokeAni 5s infinite linear;
}
@keyframes strokeAni {
0% {
stroke-dashoffset: 900;
}
100% {
stroke-dashoffset: 0;
}
}
</style>
<title>SVG mit CSS animieren - 4</title>
</head>
<body>
<h1>Beispiel: SVG mit CSS animieren - 4</h1>
<h2>Das Haus vom Nikolaus in SVG - mit CSS animiert</h2>
<svg viewBox="0 0 300 160">
<path d="M200,155 v-100 l-50,-51 l-50,51 h100 l-100,100 v-100 l100,100 h-100" />
</svg>
</body>
</html>