A
A
Alexander Nameless082018-02-16 14:55:20
JavaScript
Alexander Nameless08, 2018-02-16 14:55:20

Why can't I insert a function into the callback?

I'm trying to insert a function call into the callback viewportChecker

$('div').viewportChecker({
      classToAdd: 'visible',
      classToRemove: 'invisible',
      invertBottomOffset: true,
      repeat: false,
      callbackFunction: function(elem, action){
                  anyFunction();
       }, // 
      scrollHorizontal: false
  });


And every time I get "is not a function" , outside the callback everything works fine. What could it be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-02-16
@Eridani

offset - The delay in the appearance of elements, relative to the viewport. Specified as a number (value in pixels). You can specify a percentage (specify in quotes, with the "%" sign )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question