source: imaps-frontend/node_modules/inline-style-prefixer/lib/plugins/crossFade.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 559 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = crossFade;
7
8var _cssInJsUtils = require('css-in-js-utils');
9
10var CROSS_FADE_REGEX = /cross-fade\(/g;
11// http://caniuse.com/#search=cross-fade
12var prefixes = ['-webkit-', ''];
13
14function crossFade(property, value) {
15 if (typeof value === 'string' && !(0, _cssInJsUtils.isPrefixedValue)(value) && value.indexOf('cross-fade(') !== -1) {
16 return prefixes.map(function (prefix) {
17 return value.replace(CROSS_FADE_REGEX, prefix + 'cross-fade(');
18 });
19 }
20}
Note: See TracBrowser for help on using the repository browser.