<!-- 로티 파일이 들어갈 태그 -->
<div id = "animContainer"></div>
<!-- bodymovin library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.6/lottie.min.js"></script>
<!-- Lottie JSON 파일이 들어갈 JS 파일 -->
<script src="/front/js/test_lottie.js"></script>
test_lottie.js
var anmation = bodymovin.loadAnimation({
container : document.getElementById('animContainer'),
renderer : 'svg',
loop : true,
autoplay : true,
//path: 'https://assets8.lottiefiles.com/packages/lf20_b32f3vtz.json' // 2-1. url
path: 'https://hiphouse.club/front/images/music_notes.json' // 2-2. 다운받아서 사용.
});
'CSS' 카테고리의 다른 글
input date icon 달력 모양 바꾸기 (0) | 2024.05.08 |
---|---|
animation 애니메이션 css (0) | 2024.05.05 |
header nav (0) | 2024.05.05 |
로컬에서 작업중 부트스트랩 등 cdn 연결 안될때 (0) | 2024.05.02 |
input checkbox 체크박스를 이용한 부트스트랩 아이콘 토글 (0) | 2024.04.29 |
background bg css (0) | 2024.04.28 |
sns 카톡 사이트 링크 대표이미지 설명 만들기 (0) | 2024.04.28 |
favicon 파비콘 만들기 (0) | 2024.04.28 |