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

https://github.com/jankohlbach/css-page-transition-based-on-view-transition


https://github.com/jankohlbach/css-page-transition-based-on-view-transition

css page-transition view-transition view-transition-api view-transitions view-transitions-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# CSS view-transition based page transitions

Hacking CSS here a bit, but I wanted to make this work.

Usually, CSS view-transitions are there to morph elements from one state or page to another.

Often though, page transitions are completely separate elements and effects like curtains that cover the viewport or similar.

With this approach, I found a way to make this work purely with CSS animations, the JS needed is only to time things, send events after finishing etc.

Based on https://github.com/jankohlbach/astro-creative-base

## Setup

Make sure to install the dependencies:

```bash
yarn install
```

## Development Server

Start the development server on http://localhost:4321

```bash
yarn dev
```

## Production

Build the application for production:

```bash
yarn build
```

Locally preview production build:

```bash
yarn preview
```