Help trying to custom animate

I’m trying an on-load animation for this landing page just to get an image to fade in or bounce or any movement but the code isn’t working. I’ve tried many combos here is my code. Also do you test this by just looking at preview mode or do I need to publish it to test?

Hey Amb,
I’d like to suggest copying and pasting your code instead of providing a screenshot next time you have coding issues. It’s a lot easier for someone in the community to troubleshoot if they don’t have to retype the code themselves to test it!
That said, animations should play even in preview mode so it seems that there’s an issue with your code.

Try this combination instead:

  1. Create a Javascript file with its placement set to “Head”, then paste this script inside it
<script src=""
        integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous">
  1. Next, in your animation script, replace the contents with this script
  var yourElement = "#lp-pom-image-12";
  var yourEffect = "animate__backInLeft";
  var effectClass = "animate__animated " + yourEffect;
  $(document).ready(function() {
      .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd onanimationend animationend', function() {

This should achieve the effect you’re going for when you save and preview your site

1 Like