From a9d783599e34572a87b1499ff58f19328698d69b Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 27 Mar 2022 00:40:08 +1100 Subject: Propagate transition-duration setting to transition animations --- src/components/TileTree.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index a5ed75a..859ce1e 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -165,6 +165,8 @@ export default defineComponent({ width: '100vw', // Making this dynamic causes white flashes when resizing height: '100vh', backgroundColor: '#292524', + // CSS variables + '--transitionDuration': this.componentOptions.transitionDuration + 'ms', }; }, }, @@ -541,7 +543,7 @@ export default defineComponent({ -- cgit v1.2.3