forked from asciidoctor/asciidoctor-reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves asciidoctor#241 set data- attributes
- Loading branch information
1 parent
ce2964c
commit 0ea0381
Showing
8 changed files
with
76 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// :include: //div[@class="slides"] | ||
// :header_footer: | ||
= Data attributes | ||
:backend: revealjs | ||
:icons: font | ||
|
||
== Reference | ||
|
||
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes | ||
|
||
// .paragraphs | ||
== Paragraphs | ||
|
||
[.fragment.highlight-red,data-fragment-index=1] | ||
text1 | ||
|
||
[.fragment.highlight-red,data-fragment-index=0] | ||
text2 | ||
|
||
[.fragment.highlight-red,data-fragment-index=1] | ||
text3 | ||
|
||
// .inline-images | ||
== Inline images | ||
:imagesdir: images | ||
|
||
image:cute-cat-1.jpg[cute-cat-laying,role="fragment fade-in",data-fragment-index=3] | ||
image:cute-cat-2.jpg[cute-cat-yawning,role="fragment fade-in",data-fragment-index=1] | ||
image:cute-cat-3.jpg[cute-cat-melting,role="fragment fade-in",data-fragment-index=2] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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,34 @@ | ||
<!-- .paragraphs --> | ||
<section id="_paragraphs"> | ||
<h2>Paragraphs</h2> | ||
<div class="slide-content"> | ||
<div class="paragraph fragment highlight-red" data-fragment-index="1"> | ||
<p>text1</p> | ||
</div> | ||
<div class="paragraph fragment highlight-red" data-fragment-index="0"> | ||
<p>text2</p> | ||
</div> | ||
<div class="paragraph fragment highlight-red" data-fragment-index="1"> | ||
<p>text3</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<!-- .inline-images --> | ||
<section id="_inline_images"><h2>Inline images</h2> | ||
<div class="slide-content"> | ||
<div class="paragraph"> | ||
<p> | ||
<span class="image fragment fade-in" data-fragment-index="3"> | ||
<img src="images/cute-cat-1.jpg" alt="cute-cat-laying"/> | ||
</span> | ||
<span class="image fragment fade-in" data-fragment-index="1"> | ||
<img src="images/cute-cat-2.jpg" alt="cute-cat-yawning"/> | ||
</span> | ||
<span class="image fragment fade-in" data-fragment-index="2"> | ||
<img src="images/cute-cat-3.jpg" alt="cute-cat-melting"/> | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
</section> |