-
Notifications
You must be signed in to change notification settings - Fork 164
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
Multiple videos on multiple sections. #14
Comments
Haven't tested, but you should be able to just make a new call to the plugin, with whichever selector you want the video to play in. For instance:
|
Thank you for your quick reply! I have tried it now, but it doesn't seem to work. Thank you :) |
In your plugin call, give each video a unique id, like: var video1 = new $.backgroundVideo($('#section1'), {
videoid: "video1",
....
}; var video2 = new $.backgroundVideo($('#section2'), {
videoid: "video2",
....
}; |
That worked beautifully! Thank you sir! Now, I have a little problem with Thanks again. |
Totally makes sense. This is a CSS issue rather than a plugin issue. I'd suggest reading about CSS positioning. I think what you're looking for is to have 2 sections that have
http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/ |
Thank you very much for you help, damonbauer. I will look into it - i figured that's where the problem probably was. Thanks again! |
Aaaaaand, it's working. Thanks, and closing 👍 |
Is it in any way possible to have more than one video playing as background on other sections on one page? And if yes, then how? :)
Thanks for a great plugin, btw!
The text was updated successfully, but these errors were encountered: