add support for fragment styles (#192)
This commit is contained in:
parent
a4f03be485
commit
da40cf2172
2 changed files with 84 additions and 8 deletions
|
@ -96,6 +96,69 @@ body {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reveal .slides section .fragment.grow {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.grow.visible {
|
||||||
|
-webkit-transform: scale( 1.3 );
|
||||||
|
-moz-transform: scale( 1.3 );
|
||||||
|
-ms-transform: scale( 1.3 );
|
||||||
|
-o-transform: scale( 1.3 );
|
||||||
|
transform: scale( 1.3 );
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .slides section .fragment.shrink {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.shrink.visible {
|
||||||
|
-webkit-transform: scale( 0.7 );
|
||||||
|
-moz-transform: scale( 0.7 );
|
||||||
|
-ms-transform: scale( 0.7 );
|
||||||
|
-o-transform: scale( 0.7 );
|
||||||
|
transform: scale( 0.7 );
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .slides section .fragment.roll-in {
|
||||||
|
opacity: 0;
|
||||||
|
|
||||||
|
-webkit-transform: rotateX( 90deg );
|
||||||
|
-moz-transform: rotateX( 90deg );
|
||||||
|
-ms-transform: rotateX( 90deg );
|
||||||
|
-o-transform: rotateX( 90deg );
|
||||||
|
transform: rotateX( 90deg );
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.roll-in.visible {
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
|
-webkit-transform: rotateX( 0 );
|
||||||
|
-moz-transform: rotateX( 0 );
|
||||||
|
-ms-transform: rotateX( 0 );
|
||||||
|
-o-transform: rotateX( 0 );
|
||||||
|
transform: rotateX( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .slides section .fragment.fade-out {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.fade-out.visible {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .slides section .fragment.highlight-red,
|
||||||
|
.reveal .slides section .fragment.highlight-green,
|
||||||
|
.reveal .slides section .fragment.highlight-blue {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.highlight-red.visible {
|
||||||
|
color: #ff2c2d
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.highlight-green.visible {
|
||||||
|
color: #17ff2e;
|
||||||
|
}
|
||||||
|
.reveal .slides section .fragment.highlight-blue.visible {
|
||||||
|
color: #1b91ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
* DEFAULT ELEMENT STYLES
|
* DEFAULT ELEMENT STYLES
|
||||||
|
|
13
index.html
13
index.html
|
@ -251,6 +251,7 @@ function linkify( selector ) {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Fragmented Views</h2>
|
<h2>Fragmented Views</h2>
|
||||||
<p>Hit the next arrow...</p>
|
<p>Hit the next arrow...</p>
|
||||||
|
@ -261,6 +262,18 @@ function linkify( selector ) {
|
||||||
<li class="fragment"><strong>fragments</strong></li>
|
<li class="fragment"><strong>fragments</strong></li>
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2>Fragment Styles</h2>
|
||||||
|
<p>There's a few styles of fragments, like:</p>
|
||||||
|
<p class="fragment grow">grow</p>
|
||||||
|
<p class="fragment shrink">shrink</p>
|
||||||
|
<p class="fragment roll-in">roll-in</p>
|
||||||
|
<p class="fragment fade-out">fade-out</p>
|
||||||
|
<p class="fragment highlight-red">highlight-red</p>
|
||||||
|
<p class="fragment highlight-green">highlight-green</p>
|
||||||
|
<p class="fragment highlight-blue">highlight-blue</p>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Spectacular image!</h2>
|
<h2>Spectacular image!</h2>
|
||||||
|
|
Loading…
Reference in a new issue