UNPKG

@vtbag/element-crossing

Version:

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

58 lines (57 loc) 1.49 kB
{ "name": "@vtbag/element-crossing", "type": "module", "version": "1.1.0", "main": "lib/vanilla.js", "description": "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 experience.", "files": [ "lib/vanilla.js", "lib/vanilla.d.ts", "lib/over-the-top.js", "lib/over-the-top.d.ts" ], "exports": { ".": "./lib/vanilla.js", "./experimental": "./lib/over-the-top.js" }, "scripts": { "dev": "bin/bundle dev", "build": "npm run format; bin/bundle", "format": "prettier --write src | grep -v 'unchanged)$'", "test": "bin/test", "changeset": "changeset", "release": "changeset publish" }, "repository": { "type": "git", "url": "git+https://github.com/vtbag/element-crossing.git" }, "keywords": [ "view", "transitions", "view transition", "view-transition", "preserve", "state", "cross-document", "DOM" ], "author": "vtbag", "license": "ISC", "bugs": { "url": "https://github.com/vtbag/element-crossing/issues" }, "homepage": "https://vtbag.dev", "funding": { "type": "github", "url": "https://github.com/sponsors/martrapp" }, "devDependencies": { "@changesets/cli": "^2.27.11", "@eslint/js": "^9.17.0", "@types/dom-view-transitions": "^1.0.5", "esbuild": "^0.24.2", "prettier": "^3.4.2", "typescript": "^5.7.2" } }