Skip to content

Commit

Permalink
rotateY rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLeandro1204 committed Jun 1, 2018
1 parent af7eda4 commit c07f84c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/VueContentLoading.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<svg :viewBox="viewbox" preserveAspectRatio="xMidYMid meet">
<svg
:viewBox="viewbox"
:style="svg"
preserveAspectRatio="xMidYMid meet">
<rect
:style="rect.style"
:clip-path="rect.clipPath"
Expand Down Expand Up @@ -45,6 +48,10 @@
name: 'VueContentLoading',
props: {
rtl: {
default: false,
type: Boolean,
},
speed: {
default: 2,
Expand Down Expand Up @@ -91,6 +98,14 @@
return `clipPath-${this._uid}`;
},
svg () {
if (this.rtl) {
return {
transform: 'rotateY(180deg)',
};
}
},
rect () {
return {
style: {
Expand Down

0 comments on commit c07f84c

Please sign in to comment.