no animation is shown

Created on 20 January 2022, almost 3 years ago
Updated 28 May 2024, 6 months ago

Drupal 9.3.3

Module version 2.0.0 is installed, library is installed at /libraries/animate.css/

created a test block with an h1 to animate

injected JQuery using asset_injector module as follows:

(function ($, Drupal) {
Drupal.behaviors.animateTitle = {
attach: function (context, settings) {
$('#block-animation > div > h1').addClass('animate__animated animate__fadeInDownBig');
}
}
})(jQuery, Drupal);

this works, the class is added.

but no animation is shown.

the module's composer install fails because the library is not defined.

I installed the library by defining its source in composer as follows:

        {
            "type": "package",
            "package": {
                "name": "daneden/animate.css",
                "version": "3.7.2",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/daneden/animate.css/archive/3.7.2.zip",
                    "type": "zip"
                }
            }
        }, 

install went smoothly after I added the above to my main composer.json file

BUT: no animations are shown.

no problems are shown in update.php or status report, no errors in console.

What is the problem?

It looks like animate.css does not get included on the page

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024