UNPKG

@ysmood/material-ui

Version:

Material Design UI components built with React

29 lines (19 loc) 713 B
var AutoPrefix = require('./auto-prefix'); module.exports = { easeOutFunction: 'cubic-bezier(0.23, 1, 0.32, 1)', easeInOutFunction: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)', easeOut: function(duration, property, delay, easeFunction) { easeFunction = easeFunction || this.easeOutFunction; return this.create(duration, property, delay, easeFunction); }, create: function(duration, property, delay, easeFunction){ duration = duration || '450ms'; property = property || 'all'; delay = delay || '0ms'; easeFunction = easeFunction || "linear"; return AutoPrefix.singleHyphened(property) + ' ' + duration + ' ' + easeFunction + ' ' + delay; } };