UNPKG

@vtbag/turn-signal

Version:

Turn-Signal is a lightweight script that enhances cross-document navigation by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a

67 lines (66 loc) 1.81 kB
{ "name": "@vtbag/turn-signal", "type": "module", "version": "1.3.1", "main": "lib/index.js", "description": "Turn-Signal is a lightweight script that enhances cross-document navigation by detecting the direction of browser navigation. It enables developers to create smooth, responsive transitions that adjust based on forward or backward navigation, delivering a more intuitive user experience.", "files": [ "lib/index.js", "lib/forced-traversal.js", "lib/link-types.js", "lib/directions.js", "lib/debug.js" ], "exports": { ".": "./lib/index.js", "./directions": "./lib/directions.js", "./link-types": "./lib/link-types.js", "./forced-traversal": "./lib/forced-traversal.js", "./debug": "./lib/debug.js" }, "scripts": { "dev": "bin/bundle dev", "build": "npm run format; bin/bundle", "format": "prettier --write src | grep -v 'unchanged)$'", "changeset": "changeset", "release": "changeset publish", "start": "npx serve -l 3000 tests", "test": "playwright test" }, "repository": { "type": "git", "url": "git+https://github.com/vtbag/turn-signal.git" }, "keywords": [ "view", "transitions", "view transition", "view-transition", "directions", "animations", "cross-document", "backward", "history-traversal" ], "author": "vtbag", "license": "ISC", "bugs": { "url": "https://github.com/vtbag/turn-signal/issues" }, "homepage": "https://vtbag.dev", "funding": { "type": "github", "url": "https://github.com/sponsors/martrapp" }, "devDependencies": { "@changesets/cli": "^2.27.12", "@eslint/js": "^9.19.0", "@playwright/test": "^1.50.0", "@types/dom-navigation": "^1.0.4", "@types/dom-view-transitions": "^1.0.5", "esbuild": "^0.24.2", "prettier": "^3.4.2", "serve": "^14.0.1", "typescript": "^5.7.3" } }