你好嗎?我正在為一個主播朋友做一個簡單的網站。當我在做關于部分時,他想要一些關于他最喜歡的兩件事的圖片。但是當我插入一些 Lottie Animation IMG 時,其中一個變成了雙重的。
我舉個例子吧。
<div class="container">
<div class="row">
<div class="col">
<div id="F1"></div></a>
<script src="lottie.js"></script>
<script src="script.js"></script>
</div>
<div class="col">
<p class="Texto1">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
我在GitPages上傳了網站,鏈接如下:https ://bauditz.github.io/T0omp---Website-Project/about.html
感謝您的任何幫助!
uj5u.com熱心網友回復:
在您的網站上,我可以看到您正在加載 F1 和薯條影片兩次,我認為這不會解決您的問題,但最好只加載一次。
其次,我建議您嘗試使用 lottie-web 而不是 bodymovin,這是 CDN 的鏈接:
https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.8.1/lottie.min.js
在您的腳本中,您必須將 'bodymovin.loadAnimation' 替換為 'lottie.loadAnimation'
我下載了你的影片并在 lottiefiles.com 上查看它看起來不錯。
uj5u.com熱心網友回復:
我認為您的 Lottie 檔案包含兩個影片物件。從 f1.json 或 aftereffect 檔案中洗掉一次物件,然后再次匯出,享受
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/363393.html
標籤:javascript html css 动画片 乐蒂
上一篇:當一個文本比另一個文本長時UILabel文本更改影片閃爍
下一篇:基于媒體查詢未正確選擇CSS懸停
