Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = {
  6. easeOutFunction: 'cubic-bezier(0.23, 1, 0.32, 1)',
  7. easeInOutFunction: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
  8. easeOut: function easeOut(duration, property, delay, easeFunction) {
  9. easeFunction = easeFunction || this.easeOutFunction;
  10. if (property && Object.prototype.toString.call(property) === '[object Array]') {
  11. var transitions = '';
  12. for (var i = 0; i < property.length; i++) {
  13. if (transitions) transitions += ',';
  14. transitions += this.create(duration, property[i], delay, easeFunction);
  15. }
  16. return transitions;
  17. } else {
  18. return this.create(duration, property, delay, easeFunction);
  19. }
  20. },
  21. create: function create(duration, property, delay, easeFunction) {
  22. duration = duration || '450ms';
  23. property = property || 'all';
  24. delay = delay || '0ms';
  25. easeFunction = easeFunction || 'linear';
  26. return property + ' ' + duration + ' ' + easeFunction + ' ' + delay;
  27. }
  28. };