matthieua / WOW

Reveal CSS animation as you scroll down a page
https://www.delac.io/WOW/
9.92k stars 4.11k forks source link

Callback not working #332

Open mhebrard opened 5 years ago

mhebrard commented 5 years ago

I use wow to animates few element on my page with success.

I wish to use wow to trigger other js functions when item are visible. I try to use callback option but it doesn't seams to work

var wow = new WOW(
    {
      callback:     function(box) {
        // the callback is fired every time an animation is started
        // the argument that is passed in is the DOM node being animated
        console.log("!! WOW !!");
      }
    }
  );
  wow.init();

the animations are triggered, but nothing is logged

strophi commented 5 years ago

Hi,

I have the same Problem. I want to start a number animation on reveal, doesn't work. I have wow.js bundled with MDB Pro.

thanx in advance,

strophi