-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 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 |
---|---|---|
|
@@ -23,26 +23,27 @@ import Slide from "../components/Slide.astro"; | |
</p> | ||
</Slide> | ||
|
||
<Slide> | ||
<p>Open your devtools, go to the Network tab and reload the page.</p> | ||
<p class="fragment"> | ||
The 24kB of javascript you see is nothing more than the <a | ||
href="https://bundlephobia.com/package/[email protected]">reveal.js</a | ||
> package. | ||
</p> | ||
<p class="fragment">Now keep your devtools open and go to the next slide.</p> | ||
</Slide> | ||
|
||
<Slide> | ||
<p> | ||
You just downloaded React and Framer Motion to hydrate this interactive | ||
This is a demo of a slide using React and Framer Motion to hydrate this interactive | ||
component. | ||
</p> | ||
<p> | ||
<small>Try to drag & drop to reorder the items.</small> | ||
</p> | ||
<p> | ||
<small class="yikes">(it's broken, but you get the idea...)</small> | ||
</p> | ||
<div> | ||
<!-- Hydrate this React component (i.e. download and execute its code) only when the slide is visible --> | ||
<List client:visible /> | ||
</div> | ||
</Slide> | ||
|
||
<style> | ||
.yikes { | ||
font-size: .4em; | ||
margin-top: -1.5em; | ||
opacity: .8; | ||
} | ||
</style> |