¿cómo estás? Estoy haciendo un sitio web simple para un amigo streamer. Cuando estaba haciendo la sección Acerca de, quería algunas imágenes sobre dos cosas que le gustaban más. Pero cuando inserto algún IMG de Lottie Animation, uno de ellos se convierte en un doble.
Pondré el código por ejemplo.
<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>
Subí el sitio web en GitPages, aquí está el enlace: https://bauditz.github.io/T0omp---Website-Project/about.html
¡Gracias por cualquier ayuda!
en su sitio web puedo ver que está cargando sus animaciones F1 y papas fritas dos veces, no creo que esto resuelva su problema, pero es mejor cargarlas solo una vez.
En segundo lugar, te recomiendo que intentes usar lottie-web en lugar de bodymovin, este es un enlace a la CDN:
https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.8.1/lottie.min.js
En su secuencia de comandos, deberá reemplazar 'bodymovin.loadAnimation' por 'lottie.loadAnimation'
Descargué su animación y verifiqué en lottiefiles.com que se ve bien.
Creo que su archivo Lottie incluye dos objetos de animación. elimine una vez el objeto de f1.json o del archivo aftereffect y luego exporte nuevamente, disfrute