Elementor Add Animation to AJAX Loaded Content

Elementor Add Animation to AJAX Loaded Content

Element.How also offers premium tutorials! Check them here:

Table of Contents

In this tutorial I'm going to show you how we can add nice entrance animations to items that have been loaded through AJAX.

By default, Elementor doesn't have any AJAX loading. Several of the addons have this option however.

In particular, we are going to focus on the very popular JetSmartFilters filter addon from Crocoblock.

See a live demo of what we will be creating here:

Visit the demo page directly.

Notice the animation of the filtered list items after a filter is changed. By default, there is no option to have this kind of animation. By following this tutorial however, you will learn  how to easily add it!

We will have two different effects, both of which can be customized.

The first one is this Fade In Up animation.

 

The other one is this Zoom In animation.

Features:

  • Compatible with all AJAX loaded content
  • Works for JetEngine Listing Grid, WooCommerce product grid, Elementor Posts, Archives, etc.
  • Choice of two animations
  • The animation is customizable easily, through editing the CSS

Important to note that this tutorial does NOT include any filtering solution. It's solely about adding animations to grid lists that are filtered through AJAX, with plugins such as JetSmartFilters.

Let's get started!

First, let's locate the right selector for your project

This is a premium tutorial. Purchase access to unlock the full tutorial.

Access tutorial

$39/one time Purchase access

Includes

  • Gain Access to This TutorialUnlock complete access to the current tutorial:
  • Future UpdatesYou will get access to all future updates to this tutorial.
  • Enjoy Unlimited UsageUse on as many of your own sites or your clients sites as you wish.

    Note that reselling or redistributing is not permitted.

Access everything

$299/one time Purchase All Access

Includes

  • Unlock every premium tutorial on Element.howGet access to the entire library of premium tutorials on Element.how
    Preview premium tutorials
  • Get access to the CSS course for Elementor usersAccess the complete 14 HTML chapters, 30 CSS chapters and 7 Elementor Projects.Learn more
  • Simple CSS Grid For ElementorAn Elementor Addon to Create Awesome Grid Layouts in a Single Click for Containers, Galleries and Loop Grid. Learn more
  • free extra: ShapeDividers.com Premium AccessLifetime Premium Access to ShapeDividers.comVisit ShapeDividers.com
  • 30 day money backNo questions asked money back. Not what you expected? Get a refund.
  • One-time payment of only $299No hidden fees or subscriptions.

    Sales taxes added where applicable.
  • Great supportGet help when you need it. Support includes getting things working as intended.

    Support excludes customization work.
  • Lifetime access to everything Element.howThe price reflects what is currently available on Element.how. All future updates are included, but none are promised. You pay for what is available now, and the rest is a sweet extra.

    I will say that it is definitely my intention to keep adding tutorials to Element.how.
* All prices are USD. Applicable taxes will be charged at checkout. Have a question? See the FAQ or email me.

Element.how also provides premium tutorials showing awesome advanced designs, check them out here.

Looking for something else? Search across 2737 Elements right here:

Checkout the Elementor Addon Finder directly

7 Responses

  1. Hi! it works great, but what if my grid is lower on the page? and i want an entrance animation triggered when in viewport? (like a regular elementor entrance animation)

      1. Hey Ruben!

        First of all, my apologies for answering just now.

        Regarding your request, I think I understand what you are asking, and yes it is possible. However it's not really the intention of the current tutorial, and the technique required is completely different...

        Essentially, you want that when the viewport reaches a listing grid of one sort of another, the elements animate in sequentially You don't want this to happen after filtering them, or clicking a "load more" button. Is that right?

  2. Hi Maxime,
    Im trying to use this code on elementor posts and loop items: .elementor-post, .e-loop-item.
    I changed this at the beginning of the code ijn the style css. But isn't there a possibility to also get this to work for the sequential animations in the tags? I tried to do this: let animSelectors = ".elementor-post, .e-loop-item"; but this broke the sequential animation.
    I read this code is only for one instance, but isnt there just a really easy way to also get the sequential animation to work with multiple appended css classes?
    Thank you!
    Toine

    1. I forgot to mention that im using the code as a elementor custom code on the entire website. If that gives some context why im wanting to add multiple classes in the code.

    2. Greetings Toine,

      Could you let me see your page? That'd give me a better idea what you are looking for here...

      Thanks!

    3. Hey Toine,

      Try this JS. Adjust animSelectors as you need.

      if (!document.querySelector('.elementor-editor-active')) {

      let animSelectors = [".jet-listing-grid__item"];
      animSelectors.forEach(animSelector => {
      let animEntries = 18;

      let headElem = document.getElementsByTagName('head')[0];
      let animStylesElem = document.createElement('style');

      for (let i = 1; i <= animEntries; i++) {
      animStylesElem.innerHTML += animSelector + `:nth-child(${i}){
      animation-delay:${i / 10 - 0.1}s;
      }
      `
      }
      headElem.appendChild(animStylesElem);
      });

      };

Leave a Reply