-
Notifications
You must be signed in to change notification settings - Fork 23
/
circle.html
executable file
·55 lines (50 loc) · 2 KB
/
circle.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
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Circle Ripple</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- SVG Sprite -->
<div style="height: 0; width: 0; position: absolute; visibility: hidden;" aria-hidden="true">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false">
<symbol id="ripply-scott" viewBox="0 0 100 100">
<circle id="ripple-shape" cx="1" cy="1" r="1"/>
</symbol>
</svg>
</div>
<!-- /end sprite -->
<div class="container">
<header class="codrops-header">
<h1>SVG Ripples</h1>
<nav class="codrops-demos">
<a class="current-demo" href="circle.html">circle</a>
<a href="radial-gradient.html">circle+radialGradient</a>
<a href="polygon.html">polygon</a>
<a href="linear-gradient.html">rect+linearGradient</a>
</nav>
</header>
<!-- button component -->
<button id="js-ripple-btn" class="button styl-material">
Click for Ripple
<svg class="ripple-obj" id="js-ripple">
<use height="100" width="100" xlink:href="#ripply-scott" class="js-ripple"></use>
</svg>
</button>
<!-- /end button component -->
</div>
<!-- /container -->
<!-- GreenSock Power : Required for Demo -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/TweenMax.min.js"></script>
<script src="js/ripple-config.js"></script>
</body>
</html>