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

fullscreen video or image #440

Closed
doso opened this issue May 4, 2013 · 10 comments
Closed

fullscreen video or image #440

doso opened this issue May 4, 2013 · 10 comments

Comments

@doso
Copy link

doso commented May 4, 2013

Hallo could you please help me to use a fullscreen image or youtube video as background? it seems not working properly with this beautiful plugin and im not so deep inside html5 ;( thanks a lot!

@jonlow
Copy link

jonlow commented May 8, 2013

You can apply a background image to the body tag. You can also change this per slide using the data-set attribute on a slide. Check this out for more info http://www.raymondcamden.com/index.cfm/2012/7/23/Adding-a-background-image-to-a-revealjs-presentation

I haven't attempted a fullscreen background video, but you would definitely have to position this absolute with css, and use js to position the video depending on the size of the screen.

@hakimel
Copy link
Owner

hakimel commented May 12, 2013

Thanks for answering, @jonlow

@hakimel hakimel closed this as completed May 12, 2013
@amitkot
Copy link
Contributor

amitkot commented Aug 18, 2013

Can this effect be achieved on a per-slide basis when using markdown for the presentation's contents?

@d4tocchini
Copy link

any non-hacky solutions for full-screen video... the positioning issue is really annoying

@tdikun
Copy link

tdikun commented Sep 15, 2013

I second @d4tocchini on this––really need a fullscreen video solution.

@SR--
Copy link

SR-- commented Oct 22, 2013

+1 for background video. or is there a recommended way of doing that?

@astorije
Copy link

Check this out for more info http://www.raymondcamden.com/index.cfm/2012/7/23/Adding-a-background-image-to-a-revealjs-presentation

This is now a 404 😢
@jonlow, do you happen to have an alternative link or snippet?

@egrosclaude
Copy link

@astorije
Copy link

I ended up successfully using data-background="img/my-image.jpg" by the way. I haven't tried with other types of media but this worked well.

@divan
Copy link

divan commented Apr 27, 2019

data-background doesn't work with videos, but data-background-video does.

<section data-background-video="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" 
              data-background-color="#000">
</section>

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

10 participants