-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimation.html
153 lines (132 loc) · 2.33 KB
/
animation.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
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: Baskerville;
text-align: center;
padding: 20px;
}
h1 {
font-weight: normal;
font-size: 1.8em;
}
#graphDiv,#yearsDiv {
display: block;
clear: left;
}
.link {
stroke: #000;
}
.node {
stroke: #fff;
}
.legend {
width: 75%;
text-align: left;
font-size: .8em;
pointer-events: none;
}
#description p {
margin: 0;
font-size: .8em;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.y.axis .tick {
font-size: .75em;
}
.area {
fill-opacity: .15;
}
.line {
stroke-width: 1.5px;
fill: none;
}
.hidden {
visibility: hidden;
}
.annotation {
font-size: 1.1em;
pointer-events: none;
}
/*.fadeIn {
-webkit-animation: fade 2s;
animation: fade 2s;
opacity: 1
}
*/
/* -fail- */
/*
@-webkit-keyframes fade {
from {opacity: 0}
to {opacity: 1}
}@keyframes fade {
from {opacity: 0}
to {opacity: 1}
}
.fadeOut {
-webkit-animation: fadeout 3s;
animation: fadeout 3s;
opacity: 0
}
*/
/* -fail- */
/*
@-webkit-keyframes fadeout {
from {opacity: 1}
to {opacity: 0}
}@keyframes fadeout {
from {opacity: 1}
to {opacity: 0}
}
*/
.annotation p {
margin: 0;
}
#nodeInfo p{
margin: 0;
padding: 0;
font-size: .7em;
}
#nodeInfo .line1{
margin-top: 5px;
}
#nodeInfo .line2{
margin-bottom: 5px;
}
button {
font-size: 9px;
}
.checkBox {
font-size: .8em;
display: block;
}
</style>
</head>
<body>
<h1>Visualizing Citation Networks Over Time</h1>
<div id="graphDiv"></div>
<div id="yearsDiv"></div>
<div id="description"></div>
<div id="nodeInfo"><p class="line1"></p><p class="line2"</p></div>
<button id="yearButton", style="opacity: 0.4">Next Year</button>
<button id="disconnectButton", style="opacity: 0.4">Disconnect Ego Node</button>
<button id="pauseButton">Pause</button>
<button id="speedUpButton">Faster</button>
<button id="stopButton">STOP</button>
<button id="reloadButton">Reload</button>
<div id="checkboxDiv" class="checkBox">
<input type="checkbox" name="annotation" id="annotationCheckBox"> Remove annotations
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<!-- <script src="../d3.v3.js"></script> -->
<script src="animation.js"></script>
</body>
</html>