mbagna / fade-theme

🎨 Basic fade in/out theme.

Home Page:https://swup.js.org/themes/fade-theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swup Fade Theme

Basic theme for fade in/out animation of the main container.

Instalation

This theme can be installed with npm

npm install @swup/fade-theme

and included with import

import SwupFadeTheme from '@swup/fade-theme';

or included from the dist folder

<script src="./dist/SwupFadeTheme.js"></script>

Usage

To run this theme, include an instance in the swup options.

const swup = new Swup({
  theme: [new SwupFadeTheme()]
});

mainElement Option

Changes the selector of the elements to fade in/out. Defaults to #swup.

About

🎨 Basic fade in/out theme.

https://swup.js.org/themes/fade-theme

License:MIT License


Languages

Language:JavaScript 93.3%Language:CSS 6.7%