Skip to content

Transfer selected element state across cross-document view transitions.    ⭐️ Please star to support this work! ⭐️

Notifications You must be signed in to change notification settings

vtbag/element-crossing

Repository files navigation

⭐️Please star to support this work⭐️

🚸 The Element Crossing

Transfer selected element state across cross-document view transitions.

Build Status npm version minzip NPM Downloads

The @vtbag website can be found at https://vtbag.pages.dev/

!!! News !!!

Updated dependencies.

For details see the CHANGELOG

What happened before?

Small improvements for smoother animations and handling reloads.

What is it?

Boost the smoothness of your cross-document view transitions with the Element Crossing library! No more resetting to static states! This library preserves the current dynamic state of your DOM and CSS properties, ensuring a seamless user experience.

With Element Crossing, you can automatically retain:

  • Current form inputs
  • Current scrollbar positions
  • Current state of active CSS animations
  • Current media playback time
  • Current toggle states
  • Current values of dynamically added classes and CSS properties
  • ...and (current) anything else you'd like to carry over from the previous page to the new one!

Simply annotate your elements in the HTML source or DOM, and let the library handle the rest. Keep your users engaged by preserving the exact state they left off, making transitions across documents smoother than ever!

Address any CSS property or DOM element property, any CSS class, or CSS animation.

View configuration examples and see the Element Crossing in action

About

Transfer selected element state across cross-document view transitions.    ⭐️ Please star to support this work! ⭐️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published