Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

videoPlayOnlyVisible #209

Closed
gcooke75 opened this issue Mar 14, 2022 · 1 comment
Closed

videoPlayOnlyVisible #209

gcooke75 opened this issue Mar 14, 2022 · 1 comment

Comments

@gcooke75
Copy link

Video still loading when visible even when videoPlayOnlyVisible: false

Version used:

v2.0.2

Code to reproduce the issue (HTML blocks + JavaScript initialization)

<div class="jarallax" data-jarallax data-video-src="https://www.youtube.com/watch?v=5rPmsdGPGFU">
      <div class="container"> 
		<div class="row h-100">
			    <div class="col-12 text-center">
					 <h2>Early Works</h2>
			   </div>
		</div>
	</div>
</div>
 jarallax(document.querySelectorAll('.jarallax'), {
speed: 0.2,
videoPlayOnlyVisible: false,
videoLazyLoading: false
});
@nk-o
Copy link
Owner

nk-o commented Mar 25, 2022

Video background is always playing automatically. The option videoPlayOnlyVisible allows you to play video only in case, the section is in the viewport. If it is false, the video will be always playing.

@nk-o nk-o closed this as completed Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants