-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDesign F.html
45 lines (44 loc) · 1.04 KB
/
Design F.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>百度前端-设计学院-第八课-Part One</title>
<style>
html,
body {
position: relative;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
#bodyMovin {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
width: 80vmin;
height: 80vmin;
transition: all 1s;
}
</style>
</head>
<body>
<div id="bodyMovin"></div>
</body>
<script src="./resource/bodymovin.js"></script>
<script>
bodymovin.loadAnimation({
autoplay: true,
container: document.getElementById('bodyMovin'),
loop: true,
path: './resource/data.json',
renderer: 'svg'
});
</script>
</html>