Topic: WOW callback not working
Maxime Hebrard
asked 2 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 Obrebski
staff answered 2 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 2 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.
Piotr Obrebski staff commented 2 years ago
Great to hear that!
Resolved
- User: Free
- Premium support: No
- Technology: jQuery
- MDB Version: 4.8.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 2 years ago
Ok, thanks for a report. Its a kind of bug. We will try to fix this as soon as possible.