Beispiel:SVG-Anwendung-text-16.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html>
<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 {
  width: 96%;
  height: 600px;
  padding:0;
  margin:0;
  background: white;
}
 
text {
   font-family: serif; 
   font-size: 250px;
}
 
</style>
<title>SVG-Texteffekt-16</title>
</head>
 
<body>
 
<h1>SVG-Texteffekt mit feTurbulence</h1>
 
<main>
 
<svg viewBox="0 0 880 400">
  <defs>
    <filter id="gerissen" filterUnits="userSpaceOnUse" x="0" y="-100" >
      <feTurbulence result="Rauschen" 
	      baseFrequency="0.08"
          numOctaves="1" 
		  seed="1" />
       <feDisplacementMap in="SourceGraphic" in2="Rauschen" scale="9" />
    </filter>
  </defs>
 
<g filter="url(#gerissen)">
  <text fill="#c32e04" transform="translate(10,75)">Eat me!</text>
  <text stroke-width="12" stroke="blue" fill="yellow" transform="translate(10,300)">Eat me!</text>
</g>
</svg>
 
</main>
 
</body>
</html>