Beispiel:SVG-Anwendung-text-5.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" type="text/css" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
  <style>
svg { 
  background: white;
  border: 1px dotted #3983ab;
  width: 96%;
  padding: 0;
  height: 450px;
  }
text {
  font-family: "serif";
  font-size: 120px;	
  font-weight: bold;
}
 
  </style>
  <title>SVG - Schlagschatten</title>
</head>
 
<body>
  <h1>SVG - Schlagschatten</h1>
 
<main>
<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)" stroke-width="0" stroke="#222" >Schlagschatten</text>
</svg>
 
 
</main>
</body>
</html>