()
| 1756 | exports.default = _default; |
| 1757 | |
| 1758 | function getTransitionProperties() { |
| 1759 | var style = document.createElement('div').style; |
| 1760 | var vendorMap = { |
| 1761 | O: function O(e) { |
| 1762 | return "o" + e.toLowerCase(); |
| 1763 | }, |
| 1764 | Moz: function Moz(e) { |
| 1765 | return e.toLowerCase(); |
| 1766 | }, |
| 1767 | Webkit: function Webkit(e) { |
| 1768 | return "webkit" + e; |
| 1769 | }, |
| 1770 | ms: function ms(e) { |
| 1771 | return "MS" + e; |
| 1772 | } |
| 1773 | }; |
| 1774 | var vendors = Object.keys(vendorMap); |
| 1775 | var transitionEnd, animationEnd; |
| 1776 | var prefix = ''; |
| 1777 | |
| 1778 | for (var i = 0; i < vendors.length; i++) { |
| 1779 | var vendor = vendors[i]; |
| 1780 | |
| 1781 | if (vendor + "TransitionProperty" in style) { |
| 1782 | prefix = "-" + vendor.toLowerCase(); |
| 1783 | transitionEnd = vendorMap[vendor]('TransitionEnd'); |
| 1784 | animationEnd = vendorMap[vendor]('AnimationEnd'); |
| 1785 | break; |
| 1786 | } |
| 1787 | } |
| 1788 | |
| 1789 | if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; |
| 1790 | if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; |
| 1791 | style = null; |
| 1792 | return { |
| 1793 | animationEnd: animationEnd, |
| 1794 | transitionEnd: transitionEnd, |
| 1795 | prefix: prefix |
| 1796 | }; |
| 1797 | } |
| 1798 | |
| 1799 | /***/ }), |
| 1800 | /* 27 */ |
no outgoing calls
no test coverage detected
searching dependent graphs…