Drop-in page transitions

Every click feels like an app.

This is a plain multi-page website. PageFX was added with a single <script> tag — no markup changes, no framework, no rebuild of the site.

Effects

Click a card to use it and jump to the next page. Snapshot effects animate the real old and new page (native View Transitions where supported). Overlay effects cover the screen with colour panels and work the same in every browser.

Section jumps

Links to #anchors on the same page get a transition too, instead of a long smooth scroll.

Any DOM change

PageFX.transition(update, { target }) animates tabs, sliders or filtered lists — only the target element moves.

Design

Scroll reveal

Add data-pfx-reveal to anything — or set reveal: 'section' to animate an existing site without editing it.

fade-up

The default.

zoom

Scale in.

blur

Sharpen in.

flip

Hinge down.

fade-left

From the right.

clip

Mask up.

Install on any site

Paste into the <head> of every page (or your CMS theme header):

<script src="https://cdn.jsdelivr.net/npm/pagefx@0.1/dist/pagefx.min.js"
        data-effect="curtain" data-color="#111"></script>