{"_id":"evolution","_rev":"8-95bbe0b2a96e3cd698dc78d338eba041","name":"evolution","description":"simple animation library","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0":{"name":"evolution","version":"0.0.0","description":"simple animation library","main":"./index.js","repository":{"type":"git","url":"https://github.com/kamicane/evolution.git"},"keywords":["transition","animation","equations"],"author":{"name":"Valerio Proietti","email":"kamicane@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kamicane/evolution/issues"},"homepage":"https://github.com/kamicane/evolution","dependencies":{"prime":"^0.4.2","mout":"^0.9.1"},"_id":"evolution@0.0.0","dist":{"shasum":"f53d50eb918a3ff4372a935ed34de7afa52c7ec2","tarball":"https://registry.npmjs.org/evolution/-/evolution-0.0.0.tgz","integrity":"sha512-YCZjcds4PnRsLnN8YtdZapSDwoi8cX87HOC/Or9GtOBYHDVjSEelfVivE4Sm+luzDvbk02EYLDJpb/ryh2/sAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2PC3M9nXifvC+tdSJlgmGHwzN7nmREu8dQCm8cuJIvAiEA9ch6VR9EuOQGPkZ4/iweIwkQ3qjPYZAaaGlCNSvPcro="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kamicane","email":"kamicane@gmail.com"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"directories":{},"deprecated":"use transition instead"},"0.1.0":{"name":"evolution","version":"0.1.0","description":"simple animation library","main":"./index.js","repository":{"type":"git","url":"https://github.com/kamicane/evolution.git"},"keywords":["transition","animation","equations"],"author":{"name":"Valerio Proietti","email":"kamicane@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kamicane/evolution/issues"},"homepage":"https://github.com/kamicane/evolution","dependencies":{"prime":"^0.4.2","mout":"^0.9.1"},"_id":"evolution@0.1.0","dist":{"shasum":"e1c34f0a26616f17053d55c4195621c3f0d63740","tarball":"https://registry.npmjs.org/evolution/-/evolution-0.1.0.tgz","integrity":"sha512-k4KS2K/VT2/GxR773ypGhMOxZnCeBy/PocJJi5ewxqTC9HpvcLsAZzVapOhOEoN6NfgAv5p8ccOwjqaN6FFxEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4+eIclcLIoJGgaKFAr4G+3WnoBddLV4QyCFRJh2NEGQIgXJnrfBN95FPXbpY+qhteSeF2JmZIJC0rku5BJeeit14="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kamicane","email":"kamicane@gmail.com"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"directories":{},"deprecated":"use transition instead"}},"readme":"# Evolution\n\nEvolution is a simple animation library.\nIt is based on requestAnimationFrame.\nIts only job is to calculate a delta based on a duration and an equation.\nIt is kept simple to be able to animate any number of things, with any interpolation logic.\n\n## Properties\n\nAn animation can be `idle`, `active`, or `paused`.\n\n - `active` means the animation is started. The animation can be either paused or stopped.\n - `paused` means the animation is in a paused state. The animation can be resumed.\n - `idle` means the animation is neither paused or active. It can be started.\n\n## Usage\n\n```js\nvar Evolution = require('evolution');\nvar equations = require('evolution/equations');\n\nvar animation = new Evolution(1000, equations.sineIn, function(delta) {\n  console.log(delta);\n});\n\n// an animation should be started\nanimation.start();\n\n// is the animation running?\nconsole.log(animation.active); // true\n\n// an animation can be paused and resumed.\nanimation.pause();\n\nanimation.resume();\n\n// an animation can be stopped\nanimation.stop();\n\n// you can also check if it's idle.\nconsole.log(animation.idle);\n```\n\n## Example with Transform3d\n\n```js\n\nvar Transform3d = require('transform3d');\nvar Evolution = require('evolution');\n\nvar equations = require('evolution/equations');\n\nvar transform1 = new Transform3d();\nvar transform2 = new Transform3d();\n\ntransform1.rotateX(0).rotateY(0).scale(0.9);\ntransform2.rotateX(360).rotateY(180).scale(1.5);\n\nvar interpolation = transform1.interpolation(transform2);\n\nvar animation = new Evolution(equations.cubic, 1000, function(delta) {\n  element.style.WebkitTransform = interpolation.step(delta).compose();\n});\n\nanimation.start();\n```\n","maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"time":{"modified":"2022-06-17T21:41:42.477Z","created":"2014-05-10T21:53:16.139Z","0.0.0":"2014-05-10T21:53:16.139Z","0.1.0":"2014-05-10T22:20:40.024Z"},"homepage":"https://github.com/kamicane/evolution","keywords":["transition","animation","equations"],"repository":{"type":"git","url":"https://github.com/kamicane/evolution.git"},"author":{"name":"Valerio Proietti","email":"kamicane@gmail.com"},"bugs":{"url":"https://github.com/kamicane/evolution/issues"},"license":"MIT","readmeFilename":"README.md","users":{"theveil":true}}