-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimate_in_loop.html
35 lines (35 loc) · 1.53 KB
/
animate_in_loop.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Animate in loop</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.12.2/lottie_svg.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="dialog-gray-mark" :class="{'fade-enter-mark':isShowDialogMark, 'fade-leave-mark':!isShowDialogMark}" v-show="isShowDialogMark" @click="hideDialog()"></div>
<div class="dialog-box">
<div class="dialog-header">
<div class="center-cont">
<div class="title">Animate in loop</div>
</div>
</div>
<div class="demo-wrap">
<span class="icon" id="lottie-demo"></span>
<span class="infomation">For infinite loop let in the .JS set "loop: true". For one cyclus of animation set "loop: false".</span>
<span class="desc">Made by <a href="https://www.mingcute.com/animation" target="_blank">MingCute.com</a></span>
</div>
</div>
</body>
<script>
(function() {
let svgContainer = document.querySelector('#lottie-demo');
let animItem = lottie.loadAnimation({
wrapper: svgContainer,
animType: 'svg',
loop: true,
path: "https://raw.githubusercontent.com/Richard9394/MingCute-animation/main/json/loading_3_line.json"
});
})();
</script>
</html>