An open API service indexing awesome lists of open source software.

https://github.com/cloudfour/sky-nav-cls-pe-demos

Demos for the Sky Nav Cumulative Layout Shift + Progressive Enhancement article
https://github.com/cloudfour/sky-nav-cls-pe-demos

Last synced: about 1 year ago
JSON representation

Demos for the Sky Nav Cumulative Layout Shift + Progressive Enhancement article

Awesome Lists containing this project

README

          

# Removing layout shift from a progressively enhanced burger menu demos

Demos for the "[Removing layout shift from a progressively enhanced burger menu](https://cloudfour.com/thinks/removing-layout-shift-from-a-progressively-enhanced-burger-menu/)" article

## Getting started

### Development

The demos are powered by [Vite](https://vitejs.dev/).

Once you've copied/cloned this project, run the following commands to get up and running:

1. `npm ci` — Install dependencies
1. `npm run dev` — Compile project, start local server, and watch for file updates

### Build locally

You can build and preview locally by running:

1. `npm run build` — Builds files into a `dist/` directory
1. `npm run preview` — Starts a server using the `dist/` build