From a66892c30d8d5a07b1584577e1fea788aed6d929 Mon Sep 17 00:00:00 2001 From: Adrian Irving-Beer Date: Wed, 28 Apr 2021 17:45:33 -0400 Subject: [PATCH] Add option to reduce night animations to save power. --- src/App.vue | 8 ++++++-- src/components/Menu.vue | 11 +++++++++++ src/store/index.js | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index bb5bc65..906212d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,7 +17,8 @@ autoplay loop > -
+
+
@@ -339,11 +340,14 @@ video#background { height: 100%; background: url("assets/clouds.png") repeat; background-size: 2000px auto; - animation: move-background 120s linear infinite; opacity: 0.3; } } +#app > .backdrop.animated:after { + animation: move-background 120s linear infinite; +} + @keyframes move-background { from { transform: translate3d(-2000px, 0px, 0px); diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 40abc72..ce4db99 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -96,6 +96,16 @@ Background image +
  • + Animated night + +
  • Mute Sounds