codepens/risograph-gradient-effect-w.../dist/index.html

33 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Risograph Gradient Effect with SVG</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<svg xmlns="http://www.w3.org/2000/svg" class="svg-filter">
<defs>
<filter id="noise">
<feGaussianBlur in="SourceGraphic" stdDeviation="64" result="blur" />
<feTurbulence result="waves" type="turbulence" baseFrequency="0.735 0.771" numOctaves="1" seed="256"></feTurbulence>
<feDisplacementMap in="blur" in2="waves" scale="320" xChannelSelector="R" yChannelSelector="B" result="ripples"></feDisplacementMap>
<feComposite in="waves" in2="ripples" operator="arithmetic" k1="1" k2="0" k3="1" k4="0"></feComposite>
</filter>
</defs>
</svg>
<div class="wrap">
<div class="shape noisy"></div>
<div class="shape gradient"></div>
</div>
<p>Looks best on Retina display.<br>Click anywhere to toggle B&amp;W mode.</p>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>