enhance(client): アニメーションを減らす設定の適用範囲を拡充

This commit is contained in:
syuilo 2021-10-16 13:02:14 +09:00
parent 8cabc5953e
commit ff0521e3aa
2 changed files with 9 additions and 7 deletions

View file

@ -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: {