PostCSS plugin to generate will-change for transition props
npm install postcss-will-change-transition title="Philosopher’s stone, logo of PostCSS"
src="http://postcss.github.io/postcss/logo.svg">
[PostCSS] plugin to generate will-change for transition props.
This plugin adds will-change property after transition property to speed up animations.
These hacks are required for browsers that do not support will-change.
[PostCSS]: https://github.com/postcss/postcss
``css`
.foo {
transition: opacity 0.2s ease, width 0.2s ease;
}
`css`
.foo {
transition: opacity 0.2s ease, width 0.2s ease;
will-change: opacity, width;
}
`js``
postcss([ require('postcss-will-change-transition') ])
See [PostCSS] docs for examples for your environment.