Topic: WOW callback not working
Maxime Hebrard free 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.)
MDBootstrap staff 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 free 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 commented 5 years ago
Great to hear that!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: 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
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.