16 lines
331 B
JavaScript
16 lines
331 B
JavaScript
var prefixes = ['-webkit-', '-moz-', ''];
|
|
|
|
var values = {
|
|
'zoom-in': true,
|
|
'zoom-out': true,
|
|
grab: true,
|
|
grabbing: true
|
|
};
|
|
|
|
export default function cursor(property, value) {
|
|
if (property === 'cursor' && values.hasOwnProperty(value)) {
|
|
return prefixes.map(function (prefix) {
|
|
return prefix + value;
|
|
});
|
|
}
|
|
} |