{"name":"postcss-will-change","version":"4.0.1","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"},"engines":{"node":">=10.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/postcss/"},"peerDependencies":{"postcss":"^8.1.0"},"bugs":{"url":"https://github.com/postcss/postcss-will-change/issues"},"homepage":"https://github.com/postcss/postcss-will-change#readme","_id":"postcss-will-change@4.0.1","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nJIHJ+mwWviIPVs/vuUfa/w8XAOXUjfYSIfNgdnZdo9uHC96x4nrY2ByEkdwYLvnxKto09JYDSWH8sWYLoUhUA==","shasum":"7604320aa8ba147e4d00732a37d32658aeb436d4","tarball":"http://registry-npm.ywwl.com/postcss-will-change/download/postcss-will-change-4.0.1.tgz","fileCount":5,"unpackedSize":4326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb+cDCRA9TVsSAnZWagAAGZEP+QBZ0ZxIAVSTwN3MQFTz\nWe7bDro1ks6c3PuBL3EM5wi/FSaBJwPiGDdk2FpLs2hQGOsdBu62H28vEIPN\ndOJXOSRZYo/rKOA8WDn7a/lUbhglaehiJ3f4tUDteN17u/W5jtgdzjJPbInm\nc9zwm+qk54ecyGpELXCVz/zCyGk7RlpQxhrvc2dopmkLBkB0oUjH0EWksmZq\nipnaq3sSJ70q+YdLVCjTHtb1h6P20t4yWyXGzXUW86Tnwayd8+JjEUF1NiBx\nYi495U8WyLD4CLcmtRqVt2hHQQEBFayfTbfrMOLBPB4JmTeaivPOCygLuEB1\nSpk6wTc5xuC83s/cUGCSj8H/qDZGIPMbFY+kMrCJP0DMWiGnH8tKf8UkZ8U+\n6SGralg6PSoHPDNTcgivja+4aFT9NzohVDPYZqdACZfSIWgafMj17y/aDDgH\nZ1iOgIwW7S+llP0hQW5zeS/DbA3gYpmeEwPDdVcKUOK+7bXb5kJ2FAuu+5SD\nnSFlMpfvmM9mcpyiN15tbj8e5pyEAGESKZXiWjsFCZp23L+jup8a6ydeGOpP\netVFkpyM02y6u5Cdttknto7wHZve/rTtB2fN0qN3cFFh97UpIabSOk+k9r1h\n+YE4nPaCGHEHVmimY4i7cAzFIB0B7YYk//cPR3FsyZmzQlyUvIU8SwbHn983\nNkRF\r\n=QTQJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHx9JEDM3Vx0hWkFcEdJfZag8A+OrckbpeSlP8XiAwIKAiEAprXGFKFkAKzul9GlqMv3DgLkPuAVJuS/Ug8S/6gPzCY="}],"size":2328,"noattachment":false,"key":"/postcss-will-change/-/postcss-will-change-4.0.1.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-will-change_4.0.1_1601169154853_0.8300984916873846"},"_hasShrinkwrap":false,"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":1601169154970,"_cnpm_publish_time":1601169154970,"dist-tags":{"latest":"4.0.1"}}