-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ejs
64 lines (57 loc) · 2.88 KB
/
index.ejs
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
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVGPathAnim</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<style type="text/css" media="screen">
html, body { height: 2000px; }
body { margin: 0; padding: 0 10px; padding: 1px 10px 0; top: -1px;}
#pathContainer {
position: absolute;
top: 0;
left: 0;
/* height: 200px;
*/ }
#path {
}
</style>
<h1 id="title">SVGPathAnim</h1>
<p>Draw an SVG path in sync with a scrolling page.</p>
<p>Try it out by scrolling the page down.</p>
<p>For me on <a href="http://pasiaj.github.io/SVGPathAnim/">GitHub</a></p>
<svg version="1.1" id="pathContainer"
width="400px" height="2000px">
<path id="path" fill="none" stroke-miterlimit="10" d="M28.039-0.668c65.77,85.335-71.411,157.809,118.97,218.542
C301.196,267.061,441.693,149.959,319.832,141c-130.457-9.59-144.508,337.46-179.625,379.287
c-85.443,101.768-212.543-39.595-25.051-17.628c104.741,12.272,68.695,169.356,52.852,202.378
c-35.098,73.151-117.751,192.542-12.227,260.699c48.175,31.117,107.672,39.961,181.506,37.492
c81.125-2.134-58.948-59.4-104.575-23.667c-65.526,51.319-31.449,138.482,10.377,190.222
c35.08,43.399,125.508,171.186,20.342,206.202c-124.016,41.294-181.717-57.427-33.354-67.3
c182.461-12.142,149.031,142.773,84.667,190.851c-96.459,72.049-241.681,87.015-260.982,185.874
c-5.609,28.728-17.346,78.078,18.514,103.072c33.224,23.155,136.604,46.062,180.716,18.969
c35.149-21.587,67.974-61.556,18.045-87.965c-51.705-27.35-151.433,16.136-193.451,43.758
c-89.082,58.562-62.252,176.268,5.809,235.981"/>
<path id="path2"
fill="none"
stroke-linecap="round"
stroke-miterlimit="10"
d="M28.039-0.668c65.77,85.335-71.411,157.809,118.97,218.542
C301.196,267.061,441.693,149.959,319.832,141c-130.457-9.59-144.508,337.46-179.625,379.287
c-85.443,101.768-212.543-39.595-25.051-17.628c104.741,12.272,68.695,169.356,52.852,202.378
c-35.098,73.151-117.751,192.542-12.227,260.699c48.175,31.117,107.672,39.961,181.506,37.492
c81.125-2.134-58.948-59.4-104.575-23.667c-65.526,51.319-31.449,138.482,10.377,190.222
c35.08,43.399,125.508,171.186,20.342,206.202c-124.016,41.294-181.717-57.427-33.354-67.3
c182.461-12.142,149.031,142.773,84.667,190.851c-96.459,72.049-241.681,87.015-260.982,185.874
c-5.609,28.728-17.346,78.078,18.514,103.072c33.224,23.155,136.604,46.062,180.716,18.969
c35.149-21.587,67.974-61.556,18.045-87.965c-51.705-27.35-151.433,16.136-193.451,43.758
c-89.082,58.562-62.252,176.268,5.809,235.981">
</path>
</svg>
<script id="live-reload" src="http://localhost:35729/livereload.js"></script>
<script src="app.js"></script>
<a href="https://github.com/pasiaj/SVGPathAnim"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>