Here's a stack:
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
aside.controls { | |
--control-spacing: 0.8em; | |
--control-arrow-offset: -3.6em; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} |
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
import { useEffect, useRef, useState } from "react"; | |
import Reveal from "reveal.js"; | |
import "reveal.js/dist/reveal.css"; | |
import "reveal.js/dist/theme/black.css"; | |
function Presentation() { | |
const deckDivRef = useRef<HTMLDivElement>(null) | |
const deckRef = useRef<Reveal.Api|null>(null); | |
const deckContent = [ |
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
<html> | |
<head> | |
<title>Click me if you can</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
html, body { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; |
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
# Slide 1 | |
Here's a stack: | |
<div class="r-stack"> | |
<img class="fragment" src="https://placekitten.com/450/300" width="450" height="300"> | |
<img class="fragment" src="https://placekitten.com/300/450" width="300" height="450"> | |
<img class="fragment" src="https://placekitten.com/400/400" width="400" height="400"> | |
</div> | |
--- |
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
/* left sidebar */ | |
.oy8Mbf.aeN { | |
position: fixed; | |
left: 0; | |
margin-left: -250px; | |
z-index: 100; | |
transition: none; | |
} | |
.oy8Mbf.aeN:hover { |
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
function getUniqueFragments( fragmentElements ) { | |
return Array.from( fragmentElements ) | |
.map( ( fragment, i ) => fragment.getAttribute( 'data-fragment-index' ) || i ) | |
.filter( (value, index, array) => array.indexOf(value) === index ).length; | |
} | |
function getPastFragmentCount() { | |
const pastSlides = Array.from( Reveal.getSlidesElement().querySelectorAll( 'section.past' ) ); | |
const fragmentsInPastSlides = pastSlides.reduce( ( total, slide ) => { |
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
/* footer */ | |
.aeG, .pfiaof { | |
display: none; | |
} | |
/* hide header logo and hamburger */ | |
.gb_3c { | |
display: none !important; | |
} |
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
@keyframes dark-mode-icon-in { | |
0% { transform: rotate(90deg); } | |
100% { transform: rotate(0deg); } | |
} | |
@keyframes dark-mode-icon-out { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(-90deg); } | |
} |
NewerOlder