Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vtbag/element-crossing

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtbag/element-crossing

Sites using cross-document view transitions do full page loads of static content on navigation. The element crossing provides a way to preserve current dynamic state of selected elements across cross-document view transitions for a smoother user experienc

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by19.99%
Maintainers
1
Weekly downloads
 
Created
Source

⭐️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

Keywords

FAQs

Package last updated on 30 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc