postcss-will-change-transition

1.2.0 • Public • Published

PostCSS will change transition

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.

.foo {
    transition: opacity 0.2s ease, width 0.2s ease;
}
.foo {
    transition: opacity 0.2s ease, width 0.2s ease;
    will-change: opacity, width;
}

Usage

postcss([ require('postcss-will-change-transition') ])

See PostCSS docs for examples for your environment.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    91
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    91
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i postcss-will-change-transition

Weekly Downloads

91

Version

1.2.0

License

MIT

Last publish

Collaborators

  • megatolya