Skip to content

stagas/vendor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vendor

set a css style property with vendor prefixes

Example

var vendor = require('vendor');
var box = document.getElementById('box');

vendor(box, 'transition', 'all 1s');

setTimeout(function() {
  vendor(box, 'box-shadow', '2px 2px 2px #555');
  vendor(box, 'transform', 'rotate(30deg)');
}, 500);

API

vendor(el, prop, val)

License

MIT

About

set a css style property with vendor prefixes

Resources

Stars

Watchers

Forks

Packages

No packages published