{"_id":"zoomerang","_rev":"22-f4a4b8ec302850f57225fd637a694280","name":"zoomerang","description":"drop-in zoomer for anything","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"zoomerang","version":"0.1.0","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.0","dist":{"shasum":"67c3c3116e917701987593188716002a11a73f11","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.0.tgz","integrity":"sha512-NZ55UEtagUFz/yoROlGDnEnpIeTjnpMQwlmyeSGdfHgauzNuj+ZuP0xU4REBx5UKlL7FcBBRRZlj+bUacAXQVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjoWpgQ/m5FSnx5UkIzsOEiB8B3HBRZOkgPMAcU8qQHwIhAOsOTE/g3gfxNHY+4vioavETb5ddrWkkypkx4SfB8vKK"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{}},"0.1.1":{"name":"zoomerang","version":"0.1.1","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.1","dist":{"shasum":"744769af5761015cd428d82a0f33bed14ad757b7","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.1.tgz","integrity":"sha512-IZOZwf/I3YTXLDsfyNeBp9ySUdDG45OuqgJ90fO9AXNK6S53JHrSMVv9PZElK+xsuMZ8fu5OjQ0pkVzXkn+vvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0+b0adTNfP3lbxFlniNH4rQYkoq7NOr3bo1MoQoKDzQIgLjfN4H+onKAx4Ll9T7VM+SNI0Awqc1mBPrn6u/zNX34="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{}},"0.1.2":{"name":"zoomerang","version":"0.1.2","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.2","dist":{"shasum":"0bb1933092364f1a6795b59dd1c557e757400dcb","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.2.tgz","integrity":"sha512-LMYa4G9wZ5XCG0s7lKYGgLPBC+hfjBA071VlSp1FQWUXac1/t7HLrmbINM9W/9IkcRwCiEvvwRdu9gKi9VZoIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhdX/Xu87wP17Qr2BG1id+kuqAK4Mr6C0F0Bbqsa3RRAiEA3Pw81YWRdNwe1ikc9EgI9iImmuUPypEkrLzhPFqZrvg="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{}},"0.1.3":{"name":"zoomerang","version":"0.1.3","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.3","dist":{"shasum":"d10653c6bc2c5c2f86cfffe2031bb8871a07c2e9","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.3.tgz","integrity":"sha512-2hYy6oLJW//u+WVMmnKpVK826yfi7zrUhbn+cNHiFvUXs3dbmhbFIVATVfvnh6dDvJBLKXt+PP19rHzmdIyY1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaarnPT+0IgqgsCUQLXNWtKMk3UDhLGCItBn2IRv0QYAiEAxB6U7xtsWYu8HubfM9t/e+BxQRUPROqqjLI59Bt+Qh4="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{}},"0.1.5":{"name":"zoomerang","version":"0.1.5","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.5","dist":{"shasum":"3248df202b105ee6bec0f7b779dede73e6088ff8","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.5.tgz","integrity":"sha512-jjsDVUHhuuJHTdmcHwqkEke5XgvKL7/UJhsLnTEhLNHaiqXSeTaAlJdr6MAvjhEbAQS0MGcA/FX1GvNmFWkM3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDftWvBgCP/jOxMfgxIDv8+/pwLF+5yMXsdCuUXawOV1AIhAJKw/LxfIHJc86rqGjKo6Vsa/i9OXDM/PWS8cEU0M4eN"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{}},"0.1.6":{"name":"zoomerang","version":"0.1.6","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.6","dist":{"shasum":"a77989fe7150482bbe6dad8108553a9f47bccad8","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.6.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}]},"0.1.7":{"name":"zoomerang","version":"0.1.7","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","_id":"zoomerang@0.1.7","dist":{"shasum":"bbbc68f5b837b963e2cf1f195df4dc89ff48b246","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.7.tgz","integrity":"sha512-C+DEdy/8UWe2oP3R2WyUx9D9B/mK/NnCDvSKi8k3og1zVwAT22VoUSefvxueHxgDQ6Fmg20gkABrUoRNx+FNMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcjG9HLou6qOPSSg8bMyKS3ycFbG6KFPPeXDNSgZnTJgIgIWONZ/TJW91Qcl6380Q6hXQpojcJHdaKMzFdgd5mjp4="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}]},"0.1.8":{"name":"zoomerang","version":"0.1.8","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"git+https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","gitHead":"faf558bb8226f45ff3c92fc4e71f0fe1c14f4fa5","_id":"zoomerang@0.1.8","scripts":{},"_shasum":"21d52326eebd998cceaa19fc74b0e762017c1197","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"dist":{"shasum":"21d52326eebd998cceaa19fc74b0e762017c1197","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.8.tgz","integrity":"sha512-SbSn/d8esMRcuymM60HvkhxDy5dX+M08NQPmRN8YYZjL25QTIe5YQn6GbMSoT7QXEOiSi1oArXVSWZm1HtRveA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5G9DNXLTrMw9eAqaq2wySiyGFJ99B6TK5efJawPnceAiBjMcarlrscPa8ZHzVT6TG7ckn6elBIXYBUAtuYDghlyg=="}]}},"0.1.9":{"name":"zoomerang","version":"0.1.9","description":"drop-in zoomer for anything","main":"zoomerang.js","repository":{"type":"git","url":"git+https://github.com/yyx990803/zoomerang.git"},"keywords":["browser","zoom"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"homepage":"https://github.com/yyx990803/zoomerang","gitHead":"bdf66df08031775a0c500d822dd6c893ab80b6d5","_id":"zoomerang@0.1.9","scripts":{},"_shasum":"f4cc05a61523cef239146781cdcac8df8fdc6361","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"dist":{"shasum":"f4cc05a61523cef239146781cdcac8df8fdc6361","tarball":"https://registry.npmjs.org/zoomerang/-/zoomerang-0.1.9.tgz","integrity":"sha512-BsHKozxZdhjvt43auklJrIAvcYe7qIyLdmUsMgPdJ4WEwHyJrQaS59iG55DkRZg6T1fTYwQO2ttgHQWXlQPTPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDXf1h8p3Eu36mBQpOOvCJ/g+OQCdQE5VLJf7UfMrVYeAiEAzx4wq0Wj5SE7yhbb6YBGbjG3S7fO1ofsMY1XO0lF/Ko="}]}}},"readme":"# Zoomerang.js\n\nZoom in, zoom out on (almost) anything in your page.\n\n[Demo](http://yyx990803.github.io/zoomerang/)\n\n## Basic Usage\n\nInclude with a script tag, or install with your package manager of choice (Bower/Component/npm).\n\n``` js\nZoomerang.listen('#my-image')\n```\n\nNow when you click on `#my-image`, it will... of course, zoom in. When you click again, it will zoom back out to its original place. (get it?)\n\nThis is largely inspired by [Medium](http://medium.com)'s avatar zoom in effect, with improvements (you can resize / scroll the page when it's zoomed in and it still works). Please note it depends on the way browsers handle CSS transforms and has limited compatibility.\n\n## Caveats / Known Issues\n\n- CSS Transform required. (basically, IE10+)\n- Works best on fixed size elements such as `display: block`, `display: inline-block` and `img` elements.\n- Avoid using it on long inline text that has natural line wraps.\n- When used on mobile, it's best to avoid auto font size adjustments (e.g. set scale fixed to 1).\n- Elements with non-rectangular shape will have pixelated edge in Firefox.\n- Doesn't work on stock Android 2.x browser.\n\n## API Reference\n\n- #### Zoomerang.listen(selector | element)\n\n  Attach click listeners to all matched elements. You can also directly pass in a single node to this method.\n\n- #### Zoomerang.open(selector | element, [callback])\n\n  Zoom in on the matched element. Fires optional callback when the transition is done.\n\n- #### Zoomerang.close([callback])\n\n  Zoom out if currently zoomed-in. Fires optional callback when the transition is done.\n\n- #### Zoomerang.config(options)\n\n  Takes an options object. Available options (all options take valid CSS values):\n\n    - `transitionDuration` - default: `'.4s'`\n    - `transitionTimingFunction` - default: `'cubic-bezier(.4,0,0,1)'`\n    - `bgColor` - default: `'#fff'`\n    - `bgOpacity` - default: `1`\n    - `maxWidth` - max element width when zoomed-in. default: `300`\n    - `maxHeight` - max element height when zoomed-in. default: `300`\n    - `deepCopy` - whether to copy innerHTML. If target element has complicated inner structure you might need this to make it work. default: `false`\n    - `onOpen` - a callback function that will be called when a target is zoomed in and transition has ended. It will get the target element as the argument.\n    - `onClose` - same as `onOpen`, except fired when zoomed out.\n    - `onBeforeOpen` - a callback function, that will be called before zoom-in.\n    - `onBeforeClose` - a callback function, that will be called before zoom-out.\n## License\n\nMIT\n\nBrought to you by [@youyuxi](https://twitter.com/youyuxi).","maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"time":{"modified":"2022-07-13T16:59:07.145Z","created":"2013-12-05T18:33:32.541Z","0.1.0":"2013-12-05T18:33:33.695Z","0.1.1":"2013-12-06T16:03:31.843Z","0.1.2":"2013-12-10T15:01:11.424Z","0.1.3":"2013-12-11T09:02:26.737Z","0.1.5":"2013-12-22T05:05:44.224Z","0.1.6":"2014-01-14T17:16:58.076Z","0.1.7":"2014-02-20T16:39:29.214Z","0.1.8":"2015-06-19T20:56:38.458Z","0.1.9":"2015-07-25T04:22:55.275Z"},"author":{"name":"Evan You"},"repository":{"type":"git","url":"git+https://github.com/yyx990803/zoomerang.git"},"readmeFilename":"README.md","homepage":"https://github.com/yyx990803/zoomerang","keywords":["browser","zoom"],"bugs":{"url":"https://github.com/yyx990803/zoomerang/issues"},"license":"MIT"}