UNPKG

quasar-framework

Version:

Build responsive SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase

93 lines (91 loc) 2.34 kB
import mixin from './spinner-mixin.js' export default { name: 'QSpinnerPuff', mixins: [mixin], render (h) { return h('svg', { staticClass: 'q-spinner', class: this.classes, attrs: { 'stroke': 'currentColor', 'width': this.size, 'height': this.size, 'viewBox': '0 0 44 44', 'xmlns': 'http://www.w3.org/2000/svg' } }, [ h('g', { attrs: { 'fill': 'none', 'fill-rule': 'evenodd', 'stroke-width': '2' } }, [ h('circle', { attrs: { 'cx': '22', 'cy': '22', 'r': '1' } }, [ h('animate', { attrs: { 'attributeName': 'r', 'begin': '0s', 'dur': '1.8s', 'values': '1; 20', 'calcMode': 'spline', 'keyTimes': '0; 1', 'keySplines': '0.165, 0.84, 0.44, 1', 'repeatCount': 'indefinite' } }), h('animate', { attrs: { 'attributeName': 'stroke-opacity', 'begin': '0s', 'dur': '1.8s', 'values': '1; 0', 'calcMode': 'spline', 'keyTimes': '0; 1', 'keySplines': '0.3, 0.61, 0.355, 1', 'repeatCount': 'indefinite' } }) ]), h('circle', { attrs: { 'cx': '22', 'cy': '22', 'r': '1' } }, [ h('animate', { attrs: { 'attributeName': 'r', 'begin': '-0.9s', 'dur': '1.8s', 'values': '1; 20', 'calcMode': 'spline', 'keyTimes': '0; 1', 'keySplines': '0.165, 0.84, 0.44, 1', 'repeatCount': 'indefinite' } }), h('animate', { attrs: { 'attributeName': 'stroke-opacity', 'begin': '-0.9s', 'dur': '1.8s', 'values': '1; 0', 'calcMode': 'spline', 'keyTimes': '0; 1', 'keySplines': '0.3, 0.61, 0.355, 1', 'repeatCount': 'indefinite' } }) ]) ]) ]) } }