Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

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