Beispiel:SVG-Anwendung-text-5.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>
text {
font-family: "serif";
font-size: 120px;
font-weight: bold;
}
</style>
<title>SVG - Schlagschatten</title>
</head>
<body>
<svg viewBox="0 0 880 450">
<defs>
<linearGradient id="verlauf" gradientTransform="rotate(90,.5,.5)">
<stop offset="0" stop-color="#fff"/>
<stop offset=".3" stop-color="#000"/>
<stop offset=".4" stop-color="#220"/>
<stop offset=".55" stop-color="#fff"/>
<stop offset=".65" stop-color="#dfac20"/>
<stop offset=".75" stop-color="#002"/>
<stop offset=".9" stop-color="#fff"/>
</linearGradient>
</defs>
<text x="22" y="202" fill="#200" stroke-width="2" stroke="#200">Schlagschatten</text>
<text x="20" y="200" fill="url(#verlauf)">Schlagschatten</text>
<text x="292" y="302" fill="#200" stroke-width="2" stroke="#200">mit SVG</text>
<text x="290" y="300" fill="url(#verlauf)">mit SVG</text>
</svg>
</body>
</html>