Skip to content

Instantly share code, notes, and snippets.

@hakimel
Created October 2, 2013 21:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hakimel/6800908 to your computer and use it in GitHub Desktop.
Save hakimel/6800908 to your computer and use it in GitHub Desktop.
Hacky way of zooming out iframes in reveal.js presentations.
.reveal .slides section {
padding: 10px;
}
.reveal .slides section iframe {
-webkit-transform: scale(0.5) translate(-50%, -50%);
-moz-transform: scale(0.5) translate(-50%, -50%);
transform: scale(0.5) translate(-50%, -50%);
min-width: 200%;
min-height: 200%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment