Skip to content

jamesism/preficks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preficks

Resolves a css property to a prefixed one if necessary.

// get a prefixed transform prop name
// preficks('transform') ~ 'webkitTransform'
el.style[preficks('transform')] = 'scale(1337)';

The second param is a boolean to indicate whether or not you're in react land and need capital prefixes for some reason.

// preficks('transform', true) ~ 'WebkitTransform'
<Component style={{[preficks('transform', true)]: 'scale(1337)'}} />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published