Skip to main content
100%

tiny slides

✓ Published0🌍 Public
Aamundo
Last edited Jan 13, 2017
Created on Jan 13, 2017

A tiny slide deck runs entirely in one HTML file. Each slide is a `<section>` element inside the `<main>` tag, with CSS `display:none` hiding all but the first slide. The script listens for `keyup` events and uses `insertAdjacentElement` to move the first or last section to the opposite end of the container, shifting which slide is visible on right or left arrow presses. The presentation wraps around, and the entire implementation—HTML, CSS, and JavaScript—stays under 100 lines, using only the native DOM API and vanilla event listeners.

AI-generated description

Similar vizzes