Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 594 Bytes

File metadata and controls

25 lines (18 loc) · 594 Bytes

Add vendor prefixes in the browser

This vendor prefixer knows which properties and values are supported in the current runtime and changes only what's required. The best thing is - you don't need to download all of them. Also, it is fast, because all checks are cached.

Example

const styles = {
  container: {
    transform: 'translateX(100px)'
  }
}

Compiles to:

.container-0 {
  transform: -webkit-translateX(100px);
}

Demo

CodeSandbox