-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (34 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ShAkE-It</title>
<meta name="description" content="An image motion effect with an SVG distortion filter on mouse move." />
<meta name="keywords" content="image motion, codrops sketch, svg filter" />
<meta name="author" content="Mullai" />
<link rel="shortcut icon" href="../img/hands.jpg">
<link rel="stylesheet" type="text/css" href="css/base.css" />
</head>
<body>
<main>
<div class="frame">
<h1 class="frame__title">ShAkE-It: Image Motion Effect with SVG Filter</h1>
<nav class="frame__links"><a href="https://github.com/MullaiVen">GitHub</a>
</nav>
</div>
<div class="content">
<svg id="theSVG" width="100%" height="100%" viewBox="0 0 600 750">
<filter id="imgFilter">
<feTurbulence type="turbulence" baseFrequency="0.015" numOctaves="5" seed="4" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence1"/>
<feDisplacementMap in="SourceGraphic" in2="turbulence1" scale="0" xChannelSelector="R" yChannelSelector="B" x="0%" y="0%" width="100%" height="100%" result="displacementMap3"/>
</filter>
<g>
<image xlink:href="img/1.jpg" x="150" y="187.5" width="300" height="375" filter="url(#imgFilter)"/>
</g>
</svg>
</div>
</main>
<script src="js/index.js"></script>
</body>
</html>