瀏覽代碼

scroll example deck tweaks

Hakim El Hattab 1 年之前
父節點
當前提交
eee0a4ff24
共有 1 個文件被更改,包括 4 次插入8 次删除
  1. 4 8
      examples/scroll.html

+ 4 - 8
examples/scroll.html

@@ -22,17 +22,17 @@
 
 
 				<section><h1>Scroll View</h1></section>
 				<section><h1>Scroll View</h1></section>
 				<section data-background="indigo">
 				<section data-background="indigo">
-					<h2>Scroll triggers</h2>
+					<h2>Scroll triggered fragments</h2>
 					<ul>
 					<ul>
 						<li class="fragment fade-left">Step one</li>
 						<li class="fragment fade-left">Step one</li>
 						<li class="fragment fade-left">Step two</li>
 						<li class="fragment fade-left">Step two</li>
 						<li class="fragment fade-left">Step three</li>
 						<li class="fragment fade-left">Step three</li>
 					</ul>
 					</ul>
 				</section>
 				</section>
-				<section data-background-color="#fff"><h2>Scroll bar inverts<br>based on slide bg</h2></section>
+				<section data-background-color="#fff"><h2>Scrollbar inverts<br>based on slide bg</h2></section>
 				<section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
 				<section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
 					<h2>Auto-Animate</h2>
 					<h2>Auto-Animate</h2>
-					<p>Automatically animate matching elements across slides with <a href="https://revealjs.com/auto-animate/">Auto-Animate</a>.</p>
+					<p>Scroll triggered auto-animations 😍</p>
 					<div class="r-hstack justify-center">
 					<div class="r-hstack justify-center">
 						<div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
 						<div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
 						<div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
 						<div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
@@ -56,10 +56,7 @@
 					<h2 style="margin-top: 20px;">Auto-Animate</h2>
 					<h2 style="margin-top: 20px;">Auto-Animate</h2>
 				</section>
 				</section>
 				<section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)" id="gradient-bg">
 				<section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)" id="gradient-bg">
-					<h2>Gradient Backgrounds</h2>
-				</section>
-				<section data-auto-animate>
-					<h2 data-id="code-title">Scroll triggered code highlights</h2>
+					<h2 data-id="code-title">Code highlights,<br />meet scroll triggers</h2>
 					<pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
 					<pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
 						import React, { useState } from 'react';
 						import React, { useState } from 'react';
 
 
@@ -93,7 +90,6 @@
 				<section class="stack">
 				<section class="stack">
           <section data-background="https://static.slid.es/reveal/image-placeholder.png" id="image-bg">
           <section data-background="https://static.slid.es/reveal/image-placeholder.png" id="image-bg">
             <h2>Image Backgrounds</h2>
             <h2>Image Backgrounds</h2>
-            <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
           </section>
           </section>
           <section data-background-video-muted data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
           <section data-background-video-muted data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
             <h2>Video background</h2>
             <h2>Video background</h2>