Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

34 řádky
1.0 KiB

  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. };