S
S
Sergey Goryachev2015-11-03 08:28:15
css
Sergey Goryachev, 2015-11-03 08:28:15

How to make friends with two jQuery plugins: fullPage and viewportChecker?

Good day to all!
Webirus.ru has 2 plugins connected: fullPage and viewportChecker.
Ideally it should be like this:

1. Website opens
2. Animation fires on the first slide
3. If a person scrolls down, the animation fires on the second slide
4. When the first slide is out of sight, the animation goes to sleep
5. After returning to slide 1, it fires again

But for some reason, now I have a jamb that the animation of all slides is triggered when the page loads and does not repeat when scrolling.
Animation is connected on 1-2 slides, on the text only.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Goryachev, 2015-11-03
@webirus

The solution was found by means of one fullPage plugin.

'onLeave': function(index, nextIndex, direction){
      if (index == 1) {
        jQuery('.titleblock2').addClass("visible animated zoomIn");
      }
    }

P
Plutonium_239, 2015-11-18
@Plutonium_239

Sergey - I have the same situation, only the second plugin besides fullpage is emerge (for smooth loading of blocks), by Ilya Birman. How do I make the animation only fire when the page comes into view.
What is the point of your decision?
Is it possible to make normal scrolling work when fullpage is working (then merging will work as well)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question