Topic: animate with jQuery

kevincarld free asked 3 years ago


Expected behavior Element animates whether initiated using JS or JQuery

Actual behavior Works when using the vanilla JS example. But can't get to work if using the jQuery sample.

Resources (screenshots, code snippets etc.)

// This works 
var mainLogo = document.querySelector('#logo-footer');
  var logoAnimate = new mdb.Animate(mainLogo, {
    animation: 'pulse',
    animationStart: 'onHover',
    animationReset: true
  });
  logoAnimate.init();


  //does not work
  $('#logo-footer').animate({
    animation: 'pulse',
    animationStart: 'onHover',
    animationReset: true
  });

Dawid Wajszczuk staff commented 3 years ago

Hi. Do you get any errors in your console? Or is it blank?


kevincarld free commented 3 years ago

Hi Dawid, no errors just blank.


Dawid Wajszczuk staff answered 3 years ago


Hi,

It seems like a bug. We will take a closer look at this case and try to fix it as soon as possible.

Keep coding,
Dawid



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No