Beispiel:SVG-Animation-02.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 {
--blue: #337599;
--green: #8db243;
--red: #c82f04;
--yellow: #dfac20;
}
</style>
<title>SMIL - Animation 2</title>
</head>
<body>
<h1>SMIL - Animation 2</h1>
<svg>
<circle id="ampel" cx="100" cy="100" r="50" fill="red" />
<animate href="#ampel"
attributeName="fill"
values="red; gold; green; steelblue"
calcMode="discrete"
dur="4s"
repeatCount="99"
/>
</svg>
</body>
</html>