-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-animejs.html
146 lines (123 loc) · 4.99 KB
/
index-animejs.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/bulma/css/bulma.min.css">
<link rel="stylesheet" href="assets/css/anime.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="#">
Explain Structrual Plasticity
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarCol">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarCol" class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-danger" href="https://www.biorxiv.org/content/early/2018/11/08/466136" target="_blank">
<strong>Link to Paper</strong>
</a>
</div>
</div>
</div>
</div>
</nav>
<!-- Navbar END -->
<section class="section">
<div class="container">
<h1 class="title">Explain Structural Plasiticity</h1>
<h2 class="subtitle">
Explain structural plasticity in animations.
</h2>
</div>
</section>
<section class="section">
<div class="container">
<div class="notification">
Link to paper
</div>
</div>
<div class="container">
<div id="morphing">
<svg width="580" height="400" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->
<g>
<title>background</title>
<rect fill="#fff" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
<g display="none" overflow="visible" y="0" x="0" height="100%" width="100%" id="canvasGrid">
<rect fill="url(#gridpattern)" stroke-width="0" y="0" x="0" height="100%" width="100%"/>
</g>
</g>
<g>
<title>Layer 1</title>
<ellipse ry="71.25006" rx="71.25006" id="svg_1" cy="188.39842" cx="292.5" stroke-width="1.5" stroke="#000" fill="#fff"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_2" y2="147.77339" x2="365.00006" y1="152.77339" x1="355.00005" fill-opacity="null" stroke-opacity="null" stroke-width="0" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_3" y2="224.64846" x2="368.12506" y1="218.39845" x1="358.12505" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_4" y2="232.14846" x2="223.12494" y1="225.89846" x1="231.87495" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_5" y2="117.77336" x2="248.12496" y1="127.14837" x1="254.99997" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_6" y2="266.52349" x2="325.00003" y1="254.02348" x1="320.00002" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_7" y2="104.02335" x2="288.74999" y1="115.89836" x1="289.37499" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_8" y2="176.52341" x2="209.99993" y1="179.02342" x1="221.24994" fill-opacity="null" stroke-opacity="null" stroke-width="1.5" stroke="#000" fill="none"/>
</g>
</svg></div>
</div>
</section>
<script src="assets/js/anime/anime.min.js"></script>
<script>
var morphing = anime({
targets: '#morphing #svg_2',
'stroke-width': [
{ value: '0' },
{ value: '0' },
{ value: '0' },
{ value: '0.5' },
{ value: '1' },
{ value: '1.5' },
{ value: '1.5' },
{ value: '1.5' },
{ value: '1.5' },
{ value: '1' },
{ value: '0.5' },
{ value: '0' }
],
easing: 'easeOutQuad',
duration: 4000,
loop: true
});
var s1d3 = anime({
targets: '#morphing #svg_3',
'stroke-width': [
{ value: '1' },
{ value: '0.5' },
{ value: '0' },
{ value: '0' },
{ value: '0' },
{ value: '0' },
{ value: '0.5' },
{ value: '1' },
{ value: '1.5' },
{ value: '1.5' },
{ value: '1.5' },
{ value: '1' },
{ value: '0.5' },
{ value: '0' },
{ value: '0' },
{ value: '0' },
{ value: '0' }
],
easing: 'easeOutQuad',
duration: 4000,
loop: true
});
</script>
</body>
</html>