enhance(client): アニメーションを減らす設定の適用範囲を拡充
This commit is contained in:
parent
8cabc5953e
commit
ff0521e3aa
2 changed files with 9 additions and 7 deletions
|
@ -23,12 +23,14 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
mounted() {
|
||||
VanillaTilt.init(this.$el, {
|
||||
reverse: true,
|
||||
gyroscope: false,
|
||||
scale: 1.1,
|
||||
speed: 500,
|
||||
});
|
||||
if (this.$store.animation) {
|
||||
VanillaTilt.init(this.$el, {
|
||||
reverse: true,
|
||||
gyroscope: false,
|
||||
scale: 1.1,
|
||||
speed: 500,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue