{"name":"postcss-will-change","version":"2.0.0","description":"PostCSS plugin to insert 3D hack before will-change property","keywords":["postcss","css","postcss-plugin","will-change","fallback"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-will-change.git"},"dependencies":{"postcss":"^6.0.1"},"devDependencies":{"eslint":"^3.19.0","eslint-config-postcss":"^2.0.2","jest":"^20.0.0","lint-staged":"^3.4.1","pre-commit":"^1.2.2"},"scripts":{"lint-staged":"lint-staged","test":"jest && eslint *.js"},"jest":{"coverageThreshold":{"global":{"statements":100}}},"eslintConfig":{"extends":"eslint-config-postcss/es5","env":{"jest":true}},"lint-staged":{"*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"2d6ac67cc57931fdf707eeb065a73c8ad61216e8","bugs":{"url":"https://github.com/postcss/postcss-will-change/issues"},"homepage":"https://github.com/postcss/postcss-will-change#readme","_id":"postcss-will-change@2.0.0","_shasum":"cff091a87a0386bab1f32a7cfa7f79d6b773e100","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"cff091a87a0386bab1f32a7cfa7f79d6b773e100","tarball":"http://registry-npm.ywwl.com/postcss-will-change/download/postcss-will-change-2.0.0.tgz","integrity":"sha512-HrqpQTvjGhoURZyFdjojKwCIOH99MAXrHfyR/GrrPqhOh576VPj+Dac47K9lIn0K1cTU6ayETbOdVwNhNlRBPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGps/aB8tWKwFAooc2qgbCFdKdkx02BxbO+WX82fPW4iAiA4Gp04QT/47K6q3hqPHyJHxmKOby6zAm75Fa3g1DAi3w=="}],"size":2179,"noattachment":false,"key":"/postcss-will-change/-/postcss-will-change-2.0.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-will-change-2.0.0.tgz_1494263005421_0.8733338532038033"},"directories":{},"readme":"# PostCSS Will Change\n\n<img align=\"right\" width=\"135\" height=\"95\"\n     title=\"Philosopher’s stone, logo of PostCSS\"\n     src=\"https://postcss.org/logo-leftp.svg\">\n\n[PostCSS] plugin to insert 3D hack before [will-change] property.\n\nThis plugin uses `backface-visibility` to force the browser to create\na new layer, without overriding existing `backface-visibility` properties.\nThis 3D CSS hack is commonly done with `transform: translateZ(0)`,\nbut `backface-visibility` is used here to avoid overriding\nthe more popular `transform` property.\n\nThese hacks are required for browsers that do not support `will-change`.\n\nUse this plugin only before [Autoprefixer]. It will add vendor prefixes\nto `backface-visibility`.\n\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n[will-change]:  https://dev.opera.com/articles/css-will-change-property/\n[PostCSS]:      https://github.com/postcss/postcss\n\n```css\n.foo {\n  will-change: transform;\n}\n```\n\n```css\n.foo {\n  backface-visibility: hidden;\n  will-change: transform;\n}\n```\n\n<a href=\"https://evilmartians.com/?utm_source=postcss-will-change\">\n  <img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n\n## Usage\n\n**Step 1:** Install plugin:\n\n```sh\nnpm install --save-dev postcss postcss-will-change\n```\n\n**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`\nin the project root, `\"postcss\"` section in `package.json`\nor `postcss` in bundle config.\n\nIf you do not use PostCSS, add it according to [official docs]\nand set this plugin in settings.\n\n**Step 3:** Add the plugin to plugins list:\n\n```diff\nmodule.exports = {\n  plugins: [\n+   require('postcss-will-change'),\n    require('autoprefixer')\n  ]\n}\n```\n\n[official docs]: https://github.com/postcss/postcss#usage\n","publish_time":1494263007396,"_cnpm_publish_time":1494263007396,"dist-tags":{"latest":"4.0.1"}}