-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support image/video lightbox via data-preview-image/video, move o…
…verlay into standalone controller
- Loading branch information
Showing
9 changed files
with
538 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>reveal.js - Slide Transitions</title> | ||
|
||
<link rel="stylesheet" href="../dist/reveal.css"> | ||
<link rel="stylesheet" href="../dist/theme/black.css" id="theme"> | ||
|
||
<style> | ||
.reveal { | ||
font-size: 24px; | ||
} | ||
.reveal figure { | ||
margin: 0 0 1rem 0; | ||
text-align: left; | ||
} | ||
.reveal figure img, | ||
.reveal figure video { | ||
margin: 0.25rem 0 0 0; | ||
} | ||
figcaption, a { | ||
font-size: 16px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="reveal"> | ||
|
||
<div class="slides"> | ||
|
||
<section> | ||
|
||
<h2>Preview Overlays</h2> | ||
|
||
<div class="r-hstack items-start"> | ||
<div class="r-vstack items-start"> | ||
<h5>Images</h5> | ||
<figure> | ||
<figcaption>Preview with default settings:</figcaption> | ||
<img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image> | ||
</figure> | ||
<figure> | ||
<figcaption>Preview with data-object-fit="contain"</figcaption> | ||
<img height="50" src="https://static.slid.es/images/alphabet/v1/a.png" data-preview-image data-object-fit="contain"> | ||
</figure> | ||
<figure> | ||
<figcaption>Preview another image (c)</figcaption> | ||
<img height="50" src="https://static.slid.es/images/alphabet/v1/b.png" data-preview-image="https://static.slid.es/images/alphabet/v1/c.png"> | ||
</figure> | ||
<a href="#" data-preview-image="https://static.slid.es/images/alphabet/v1/x.png"> | ||
Preview image from a link. | ||
</a> | ||
</div> | ||
|
||
<div style="width: 1px; height: 30vh; margin: 0 3rem;background-color: #999;"></div> | ||
|
||
<div class="r-vstack items-start"> | ||
<h5>Videos</h5> | ||
<figure> | ||
<figcaption>Preview video</figcaption> | ||
<img height="50" src="https://static.slid.es/images/alphabet/v1/x.png" data-preview-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4"> | ||
</figure> | ||
<figure> | ||
<figcaption>Preview video</figcaption> | ||
<video height="50" src="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-preview-video></video> | ||
</figure> | ||
<a href="#" data-preview-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4"> | ||
Preview video from a link. | ||
</a> | ||
</div> | ||
|
||
<div style="width: 1px; height: 30vh; margin: 0 3rem;background-color: #999;"></div> | ||
|
||
<div class="r-vstack items-start"> | ||
<h5>Iframes</h5> | ||
<a data-preview-link href="https://hakim.se">https://hakim.se | data-preview-link</a> | ||
<a data-preview-link="false" href="https://hakim.se">https://hakim.se | data-preview-link=false</a> | ||
</div> | ||
</div> | ||
|
||
</section> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<script src="../dist/reveal.js"></script> | ||
<script> | ||
Reveal.initialize({ | ||
previewLinks: true, | ||
width: 1280, | ||
height: 720 | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.