View Source

transformProperty

Returns the appropriate vendor-prefixed property for use in programmatic transform style manipulation.

Installation#

npm i boundless-utils-transform-property --save

Then use it like:

/** @jsx createElement */

import transformProperty from 'boundless-utils-transform-property';

document.querySelector('.foo').style[transformProperty] = 'translateY(0)';