-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.html
39 lines (32 loc) · 1.32 KB
/
tests.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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="styles.css" rel="stylesheet">
<title>IDS Animation Examples</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js"></script>
<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/lottie-player.js"></script>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600&display=swap" rel="stylesheet">
<script src="https://unpkg.com/@dotlottie/[email protected]/dist/dotlottie-player.js"></script>
</head>
<body>
<span>1. Dot Lottie player version</span>
<dotlottie-player autoplay loop mode="normal" src="animations/logo/logo-animation.lottie" style="width: 320px">
</dotlottie-player>
<span>2. Lottie player version</span>
<lottie-player autoplay loop mode="normal" src="animations/logo/logo-animation.json" style="width: 320px">
</lottie-player>
<span>3. JSON with bodymovin version</span>
<div id="logo-json"></div>
<script>
const animation = bodymovin.loadAnimation({
container: document.getElementById('logo-json'),
renderer: 'svg',
loop: true,
autoplay: true,
path: 'animations/logo/logo-animation.json'
});
</script>
<span>4. Gif version</span>
<image id="logo-gif" src="animations/logo/logo-animation.gif"></image>
</body>
</html>