{"versions":{"0.3.3":{"name":"b-tween","version":"0.3.3","description":"A simple but powerful tweening engine for Javascript.","main":"./dist/b-tween.cjs.js","module":"./dist/b-tween.es.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"1a7f653e9ff49a7c66ca0f32618a0cc0e8298cf9","_id":"b-tween@0.3.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"7a93ed199c98cd41a33ba4c711a0fa7e86db3fa2","size":3577,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.3.3.tgz","integrity":"sha512-oEHegcRpA7fAuc9KC4nktucuZn2aS8htymCPcP3qkEGPqiBH+GfqtqoG2l7LxHngg6O0HFM7hOeOYExl1Oz4ZA=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.3.3_1563940345745_0.22379776565602127"},"_hasShrinkwrap":false,"publish_time":1563940345858,"_cnpm_publish_time":1563940345858,"_cnpmcore_publish_time":"2021-12-16T18:47:14.091Z","contributors":[]},"0.3.2":{"name":"b-tween","version":"0.3.2","description":"A simple but powerful tweening engine for Javascript.","main":"./dist/b-tween.cjs.js","module":"./dist/b-tween.es.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"fa6263d873e4d6d98b75c9143fb126e87097b213","_id":"b-tween@0.3.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"9d9902de08363f4ed4060628d2bc27a439f4d40d","size":3961,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.3.2.tgz","integrity":"sha512-Ucnv1ZH0HF6VEP/C2FutjGv3y9XW2pEQd4m3JjjpY0FkKFYeh5tqoE0ZOn/FaetzOJ6a5wT/5FgcCUILurr4Cg=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.3.2_1563938484711_0.5385022943929361"},"_hasShrinkwrap":false,"publish_time":1563938484877,"_cnpm_publish_time":1563938484877,"_cnpmcore_publish_time":"2021-12-16T18:47:14.294Z","contributors":[]},"0.3.1":{"name":"b-tween","version":"0.3.1","description":"A simple but powerful tweening engine for Javascript.","main":"./dist/b-tween.cjs.js","module":"./dist/b-tween.es.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"d81e675d602cc8f1def8c255e12b38bf01c12930","_id":"b-tween@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"cdd714f82637585582083c6bafec3cca845402ed","size":3909,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.3.1.tgz","integrity":"sha512-38VeLMpWZjT4IzdnG6COwbtEHb921mFsH+t/iNc5K/TgqwUQ7IHQ4LloH1+TqQATtz0829p6IB+ZrdN99o8QQg=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.3.1_1563937043425_0.8811485131259733"},"_hasShrinkwrap":false,"publish_time":1563937043593,"_cnpm_publish_time":1563937043593,"_cnpmcore_publish_time":"2021-12-16T18:47:14.501Z","contributors":[]},"0.3.0":{"name":"b-tween","version":"0.3.0","description":"A simple but powerful tweening engine for Javascript.","main":"./dist/b-tween.cjs.js","module":"./dist/b-tween.es.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"912f54f33c070c21b80e3839993002681bdd8d68","_id":"b-tween@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"4295c13ef457f700c4f6813dda2881e0878b60d8","size":3900,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.3.0.tgz","integrity":"sha512-TrSRB4Lh9aI4CflPqSujAPxL/ILF2bq7uyOZyatsaj0YVkwwCNP3frZEuEiHXuIb7h7E2ofgbP1sZZAjnL7Xqw=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.3.0_1563885972294_0.35110843153492866"},"_hasShrinkwrap":false,"publish_time":1563885972471,"_cnpm_publish_time":1563885972471,"_cnpmcore_publish_time":"2021-12-16T18:47:14.845Z","contributors":[]},"0.2.0":{"name":"b-tween","version":"0.2.0","description":"A simple but powerful tweening engine for Javascript.","main":"./dist/b-tween.cjs.js","module":"./dist/b-tween.es.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"48c96a45ecf5273b4f6b3bed61e66e5debaf2b9b","_id":"b-tween@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"5d4389a87ab1e94c5f59ab672db8650773c3a6d4","size":3544,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.2.0.tgz","integrity":"sha512-nCN9F8WAoc9ie4mRQW25NpIlKZ99psscScI3qpE9+Bs4qr+nJIkHgPDkjhYbR6RNA0MDJXMuKI5eCOh0s2iaRQ=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.2.0_1554800884540_0.7760124245510474"},"_hasShrinkwrap":false,"publish_time":1554800884728,"_cnpm_publish_time":1554800884728,"_cnpmcore_publish_time":"2021-12-16T18:47:15.029Z","contributors":[]},"0.1.1":{"name":"b-tween","version":"0.1.1","description":"A simple but powerful tweening engine for Javascript.","main":"index.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"4d0adc11602f5a4e599390d5c27a6a2542d9d4c9","_id":"b-tween@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"f19e515609db1f458926a59bdbdf8688eb728bd3","size":3542,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.1.1.tgz","integrity":"sha512-GR099DNLCeUEbLAG91cWuTP8gbB/uhNbx8Go5zwWY+YlHsZiYQ7AQwImE81itbulXKL79t0eOng+UlBx4hYS3g=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.1.1_1554800190658_0.7761183256558857"},"_hasShrinkwrap":false,"publish_time":1554800190765,"_cnpm_publish_time":1554800190765,"_cnpmcore_publish_time":"2021-12-16T18:47:15.252Z","contributors":[]},"0.1.0":{"name":"b-tween","version":"0.1.0","description":"A simple but powerful tweening engine for Javascript.","main":"index.js","scripts":{"dev-cjs":"rollup -c -f cjs -o ./dist/b-tween.cjs.js -w","dev-es":"rollup -c -w","dev-umd":"rollup -c -f umd -o ./dist/b-tween.umd.js -n BTween -w","build":"rm -rf dist/* && rollup -c -o ./dist/b-tween.es.js && rollup -c -f cjs -o ./dist/b-tween.cjs.js && rollup -c -f umd -n BTween -o ./dist/b-tween.umd.js"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","devDependencies":{"pre-commit":"^1.2.2","rollup":"^1.9.0","rollup-plugin-buble":"^0.19.6"},"pre-commit":["build"],"gitHead":"862dd6631daf2b803e8af3409975558e0e5f94fb","_id":"b-tween@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"97958dfbaf4794345d76568afea27cc5b47481f5","size":3523,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.1.0.tgz","integrity":"sha512-KreIfhj/wSOUW6Rcn4h71UmEGl7E20GMKIAXmDr5zXGFquHtWWifKZFjnTMsaumEp4900YHNK+CqL63ZcudFgQ=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.1.0_1554800031458_0.5980082888677236"},"_hasShrinkwrap":false,"publish_time":1554800031628,"_cnpm_publish_time":1554800031628,"_cnpmcore_publish_time":"2021-12-16T18:47:15.523Z","contributors":[]},"0.0.1":{"name":"b-tween","version":"0.0.1","description":"A simple but powerful tweening engine for Javascript.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/PengJiyuan/b-tween.git"},"keywords":["tween","animation","javascript","motion","transform"],"author":{"name":"PengJiyuan"},"license":"MIT","bugs":{"url":"https://github.com/PengJiyuan/b-tween/issues"},"homepage":"https://github.com/PengJiyuan/b-tween#readme","gitHead":"4d20aa95fc6895af8adfc8eedaf80de001e2612c","_id":"b-tween@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"anonymous","email":"731401082@qq.com"},"dist":{"shasum":"a808577e6c59e011c02bf6f18fa2584cfb705ad7","size":1104,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/b-tween/-/b-tween-0.0.1.tgz","integrity":"sha512-4h7vscoYri0GxyNXDt2bFt1c+Owd04a4vlJx7D/1p+f0ArzIUXurENKpajeSr51iyv5RpOHBo0IhxkDu/ZqmDw=="},"maintainers":[{"name":"anonymous","email":"731401082@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b-tween_0.0.1_1554793911078_0.888371766509926"},"_hasShrinkwrap":false,"publish_time":1554793911179,"_cnpm_publish_time":1554793911179,"_cnpmcore_publish_time":"2021-12-16T18:47:15.759Z","contributors":[]}},"dist-tags":{"latest":"0.3.3"},"name":"b-tween","time":{"created":"2022-01-27T15:05:06.539Z","modified":"2023-08-02T06:41:02.359Z","0.3.3":"2019-07-24T03:52:25.858Z","0.3.2":"2019-07-24T03:21:24.877Z","0.3.1":"2019-07-24T02:57:23.593Z","0.3.0":"2019-07-23T12:46:12.471Z","0.2.0":"2019-04-09T09:08:04.728Z","0.1.1":"2019-04-09T08:56:30.765Z","0.1.0":"2019-04-09T08:53:51.628Z","0.0.1":"2019-04-09T07:11:51.179Z"},"readme":"# b-tween\nA simple but powerful tweening engine for Javascript.\n\n## Install\n\n```bash\nnpm i b-tween\n```\n\n## Usage\n\n#### ES Module\n\n```js\nimport BTween from 'b-tween';\nconst tween = new BTween({\n  from: {\n    left: 0\n  },\n  to: {\n    left: 700\n  },\n  duration: 500,\n  easing: 'bounceOut',\n  onUpdate: (keys) => {\n    // You can do everything with keys\n    block.style.left = keys.left + 'px';\n  }\n});\ntween.start();\n```\n\n#### Commonjs\n\n```js\nconst BTween = require('b-tween');\n...\n```\n\n#### Browser\n\nhttps://unpkg.com/b-tween/dist/b-tween.umd.js\n\n```html\n<script src=\"https://unpkg.com/b-tween/dist/b-tween.umd.js\"></script>\n<script>\n  const tween = new BTween({\n    ...\n  });\n  tween.start();\n</script>\n```\n\n## Api\n\n### new Tween(options)\n\n#### options.from (object)\n\n#### options.to (object)\n\n#### options.duration (number)\n\n#### options.delay (number)\n\n#### options.easing (string)\n\n* linear\n* quadIn\n* quadOut\n* quadInOut\n* cubicIn\n* cubicOut\n* cubicInOut\n* quartIn\n* quartOut\n* quartInOut\n* quintIn\n* quintOut\n* quintInOut\n* sineIn\n* sineOut\n* sineInOut\n* bounceIn\n* bounceOut\n* bounceInOut\n\n#### options.onStart ( function(keys) {} )\n\n#### options.onUpdate ( function(keys) {} )\n\n#### options.onFinish ( function(keys) {} )\n\n### Start Animation\n\n```js\nconst tween = new Btween({...});\ntween.start();\n```\n\n## LICENSE\n\n[MIT](./LICENSE) © [PengJiyuan](https://github.com/PengJiyuan)","users":{}}