WOW callback not working


Topic: WOW callback not working

Maxime Hebrard asked 5 years ago

Expected behavior

When an element appears on the page, a custom javascript function is called using WOW callback option.

Actual behavior

When an element appears on the page, animations are triggered, but not javascript function.

Resources (screenshots, code snippets etc.)


Piotr Glejzer staff commented 5 years ago

Ok, thanks for a report. Its a kind of bug. We will try to fix this as soon as possible.


MDBootstrap staff pro premium answered 5 years ago

Hi,

We support using callback by this function: $('.wow').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);

I forked your snippet and created proper functionality https://mdbootstrap.com/snippets/jquery/pjoter-2-0/1052227

Best Regards, Piotr


Maxime Hebrard commented 5 years ago

Thanks. In the meantime I was using another library to detect when an element appears on the page... Your code seams working fine with WOW now. I will try it.


MDBootstrap staff pro premium commented 5 years ago

Great to hear that!


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags