-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathindex.html
210 lines (186 loc) · 5.88 KB
/
index.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Animation timeline demo</title>
<style>
html,
body {
margin: 0px;
}
.app-container {
background-color: #1e1e1e;
scrollbar-color: gray #161616;
color: #adadad;
font-size: 12px;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
#timeline {
box-sizing: border-box;
flex-grow: 8;
width: 100%;
height: 100%;
scrollbar-color: gray #161616;
}
::-webkit-scrollbar {
background: #161616;
color: gray;
}
::-webkit-scrollbar-thumb {
background: gray;
}
::-webkit-scrollbar-corner {
background: #161616;
}
main {
display: grid;
/*grid-template-columns: ;*/
height: 100%;
width: 100%;
}
.button {
padding: 0px;
width: 44px;
min-width: 44px;
margin-right: 5px;
color: #adadad;
background: transparent;
border: none;
}
.button:focus {
outline: 0;
border: none;
}
.button:hover {
background: #201616;
}
.button:focus {
border: none;
}
main {
flex-grow: 4;
height: 0px;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
}
footer {
display: flex;
height: 45%;
max-height: 70%;
}
.toolbar {
background-color: #383838;
padding-left: 44px;
max-height: 36px;
height: 36px;
position: relative;
overflow: hidden;
display: flex;
height: 36px;
background-color: #3c3c3c;
}
.outline-header {
height: 30px;
}
.outline-scroll-container {
overflow: hidden;
}
.outline-node {
padding-left: 20px;
font-size: 12px !important;
display: flex;
align-items: center;
width: 100%;
font-family: Roboto, 'Helvetica Neue', sans-serif;
color: white;
-webkit-user-select: none;
user-select: none;
height: 30px;
}
.outline-node:hover {
background-color: #3399ff;
}
.links {
display: flex;
align-items: center;
}
a {
font-family: Roboto, 'Helvetica Neue', sans-serif;
color: white;
margin-right: 30px;
}
.logs {
display: grid;
grid-template-columns: 1fr 1fr;
height: 100%;
}
.output {
height: 100%;
width: 100%;
}
.outline {
width: 250px;
min-width: 150px;
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
align-items: stretch;
align-content: stretch;
}
.content {
overflow: scroll;
}
</style>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block" rel="stylesheet" />
<script src="./lib/animation-timeline.js?v=2" type="text/javascript"></script>
</head>
<body>
<div class="app-container">
<main>
<aside></aside>
<div class="content">
<div id="currentTime"></div>
<div class="logs">
<div class="output" id="output1"></div>
<div class="output" id="output2"></div>
</div>
</div>
</main>
<div class="toolbar">
<button class="button mat-icon material-icons mat-icon-no-color" title="Timeline selection mode" onclick="selectMode()">tab_unselected</button>
<button class="button mat-icon material-icons mat-icon-no-color" title="Timeline pan mode with the keyframe selection." onclick="panMode(true)">pan_tool_alt</button>
<button class="button mat-icon material-icons mat-icon-no-color" title="Timeline pan mode non interactive" onclick="panMode(false)">pan_tool</button>
<button class="button mat-icon material-icons mat-icon-no-color" title="Timeline zoom mode. Also ctrl + scroll can be used." onclick="zoomMode()">search</button>
<button class="button mat-icon material-icons mat-icon-no-color" title="Only view mode." onclick="noneMode()">visibility</button>
<div style="width: 1px; background: gray; height: 100%"></div>
<button class="button mat-icon material-icons mat-icon-no-color" title="Use external player to play\stop the timeline. For the demo simple setInterval is used." onclick="onPlayClick()">
play_arrow
</button>
<button class="button mat-icon material-icons mat-icon-no-color" title="Use external player to play\stop the timeline. For the demo simple setInterval is used." onclick="onPauseClick()">
pause
</button>
<div style="flex: 1"></div>
<button class="flex-left button mat-icon material-icons mat-icon-no-color" title="Remove selected keyframe" onclick="removeKeyframe()">close</button>
<button class="flex-left button mat-icon material-icons mat-icon-no-color" title="Add new track with the keyframe" onclick="addKeyframe()">add</button>
<div class="links">
<a class="git-hub-link" href="https://github.com/ievgennaida/animation-timeline-control">GitHub</a>
</div>
</div>
<footer>
<div class="outline">
<div class="outline-header" id="outline-header"></div>
<div class="outline-scroll-container" id="outline-scroll-container" onwheel="outlineMouseWheel(arguments[0])">
<div class="outline-items" id="outline-container"></div>
</div>
</div>
<div id="timeline"></div>
</footer>
</div>
</body>
<script src="./demo/demo.js" type="text/javascript"></script>
</html>