-
Notifications
You must be signed in to change notification settings - Fork 106
/
index3.html
executable file
·45 lines (45 loc) · 2.16 KB
/
index3.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
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fake 3D Effect with WebGL Shaders | Demo 3 | Codrops</title>
<meta name="description" content="Demo of the tutorial on how to create a fake 3D image effect with WebGL shaders." />
<meta name="keywords" content="webgl, 3d, image, shader, javascript, tutorial, demo, web development, effect" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
</head>
<body class="demo-3">
<main>
<div class="message">Tilt your phone to see the effect.</div>
<div class="frame">
<div
id="gl"
data-imageOriginal="img/mount.jpg"
data-imageDepth="img/mount-map.jpg"
data-horizontalThreshold="15"
data-verticalThreshold="25">
</div>
<div class="frame__title-wrap">
<h1 class="frame__title">Fake 3D Effect with Shaders</h1>
<p class="frame__tagline">Move your mouse around.</a></p>
</div>
<div class="frame__links">
<a href="https://tympanus.net/Development/GridRevealEffects/">Previous Demo</a>
<a href="https://tympanus.net/codrops/?p=38413">Article</a>
</div>
<a class="frame__github" href="https://github.com/akella/fake3d">GitHub</a>
<div class="frame__demos">
<a href="index.html" class="frame__demo">demo 1</a>
<a href="index2.html" class="frame__demo">demo 2</a>
<a href="index3.html" class="frame__demo frame__demo--current">demo 3</a>
<a href="index4.html" class="frame__demo">demo 4</a>
</div>
<div class="frame__content">W</div>
</div>
</main>
<script src="js/app.js"></script>
</body>
</html>