Betzy Posted April 12, 2022 Share Posted April 12, 2022 I thank you in advance for your help and understanding, as I am inexperienced in this matter. I have this project in Wordpress and I would like to know how I can insert a lottie file to replace the image. Instead of the image that appears there I want to put a lottie file. Thank you very much. See the Pen qBpyxZm by BetzyNoemi (@BetzyNoemi) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted April 12, 2022 Share Posted April 12, 2022 Welcome to the forums @Betzy There is a helper function for that. https://greensock.com/docs/v3/HelperFunctions#lottie See the Pen QWdjEbx by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Betzy Posted April 12, 2022 Author Share Posted April 12, 2022 Thanks for the quick reply. Sorry, I don't know what I'm doing wrong. I've seen this reference before, but I can't get it to show up on the screen. I have followed the steps and it gives me an error: "Uncaught ReferenceError: lottie is not defined" Link to comment Share on other sites More sharing options...
Solution OSUblake Posted April 12, 2022 Solution Share Posted April 12, 2022 Sounds like you didn't include the lottie JavaScript file. https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.6.6/lottie.min.js Link to comment Share on other sites More sharing options...
Betzy Posted April 12, 2022 Author Share Posted April 12, 2022 Thank you very much for your help and patience. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now