UNPKG

@magic-spells/scroll-velocity

Version:

High-performance scroll velocity tracker with physics-based friction and CSS variable output for velocity-driven animations.

69 lines 1.74 kB
{ "name": "@magic-spells/scroll-velocity", "version": "0.1.0", "description": "High-performance scroll velocity tracker with physics-based friction and CSS variable output for velocity-driven animations.", "author": "Cory Schulz", "license": "MIT", "type": "module", "main": "dist/scroll-velocity.cjs.js", "module": "dist/scroll-velocity.esm.js", "unpkg": "dist/scroll-velocity.min.js", "exports": { ".": { "import": "./dist/scroll-velocity.esm.js", "require": "./dist/scroll-velocity.cjs.js", "default": "./dist/scroll-velocity.esm.js" } }, "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/magic-spells/scroll-velocity" }, "homepage": "https://github.com/magic-spells/scroll-velocity#readme", "bugs": { "url": "https://github.com/magic-spells/scroll-velocity/issues" }, "keywords": [ "scroll-velocity", "scroll-animation", "physics-animation", "css-variables", "performance", "requestAnimationFrame", "velocity-tracking", "scroll-effects" ], "files": [ "dist/", "src/" ], "scripts": { "build": "rollup -c", "lint": "eslint src/ rollup.config.mjs", "format": "prettier --write .", "prepublishOnly": "npm run build", "serve": "rollup -c --watch", "dev": "rollup -c --watch" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "browserslist": [ "last 2 versions", "not dead", "not ie <= 11" ], "devDependencies": { "@eslint/js": "^8.57.0", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4", "eslint": "^8.0.0", "globals": "^13.24.0", "prettier": "^3.3.3", "rollup": "^3.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-serve": "^1.1.1" } }