Questions tagged [inview]
24 questions
2
votes
1 answer
Play youtube video when scroll is in view
With this code the video pauses as soon as I scroll. I want to pause the video when it goes out of view instead. How do I do this?
//This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src =…

Joao Santos
- 21
- 1
- 2
2
votes
2 answers
How to bind to 'inview' event on multiple elements
I'm playing around with Velocity.js and jquery.inview, and I want all the titles on my page to slideDownIn when they come into view. This code works fine for the first title:
$('.movies-title').bind('inview', function(event, isInView, visiblePartX,…

mcography
- 1,081
- 6
- 19
- 36
2
votes
2 answers
Run a function constantly
I'm using the excellent inView plugin to check if an element is visible in the viewport, using setInterval, but the function only runs once and only when the element IS visible, not otherwise (should run else statement).
var checkViewport =…

eozzy
- 66,048
- 104
- 272
- 428
1
vote
0 answers
how to stop InView in react-intersection-observer
I use inView in my component. Until the posts were loaded, the user see the skeleton. But when I press delete button, the skeleton appears and dissappers. Can I stop this quick appearance when press the delete button.
class MyPosts extends Component…

Festina
- 327
- 3
- 17
1
vote
1 answer
Auto play/pause HTML5 video with jQuery and in-view.js
I use the jquery inview plugin top automatically play videos when in view. I have try many solutions from stackoverflow but it does not seem to work (solution 1, solution 2)