We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7eda4 commit c07f84cCopy full SHA for c07f84c
src/components/VueContentLoading.vue
@@ -1,5 +1,8 @@
1
<template>
2
- <svg :viewBox="viewbox" preserveAspectRatio="xMidYMid meet">
+ <svg
3
+ :viewBox="viewbox"
4
+ :style="svg"
5
+ preserveAspectRatio="xMidYMid meet">
6
<rect
7
:style="rect.style"
8
:clip-path="rect.clipPath"
@@ -45,6 +48,10 @@
45
48
name: 'VueContentLoading',
46
49
47
50
props: {
51
+ rtl: {
52
+ default: false,
53
+ type: Boolean,
54
+ },
55
56
speed: {
57
default: 2,
@@ -91,6 +98,14 @@
91
98
return `clipPath-${this._uid}`;
92
99
},
93
100
101
+ svg () {
102
+ if (this.rtl) {
103
+ return {
104
+ transform: 'rotateY(180deg)',
105
+ };
106
+ }
107
108
+
94
109
rect () {
95
110
return {
96
111
style: {
0 commit comments