-
Notifications
You must be signed in to change notification settings - Fork 0
/
operation_successful.html
executable file
·47 lines (44 loc) · 1.1 KB
/
operation_successful.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
body, html{
background-color:#ffffff;
margin: 0px;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
cursor: pointer;
}
#bodymovin{
position: absolute;
top: 50%;
left: 50%;
margin-top: -160px;
margin-left: -160px;
}
</style>
<script src="scripts/bodymovin.min.js"></script>
</head>
<body onclick="startAnim()">
<div id="bodymovin"></div>
<script>
var forward = 1;
var anim = bodymovin.loadAnimation({
container: document.getElementById('bodymovin'),
renderer: 'svg',
loop: false,
autoplay: false,
rendererSettings: {
progressiveLoad:false
},
path: 'operation_successful.json'
});
function startAnim() {
anim.play();
forward *= -1;
anim.setDirection(forward);
}
</script>
</body>
</html>