Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 745 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 745 Bytes

PostCSS Merge Transitions Build Status

PostCSS plugin that joins conflicting transition declarations.

Input:

.foo {
  transition: opacity .3s ease;
  transition: transform .3s ease;
  -webkit-transition: opacity .3s ease;
  -webkit-transition: transform .3s ease;
}

Output:

.foo {
  transition: opacity .3s ease, transform .3s ease;
  -webkit-transition: opacity .3s ease, transform .3s ease;
}

Usage

postcss([ require('postcss-join-transitions') ])

See PostCSS docs for examples for your environment.