From 94f9bdf20df4d728b6f787a59812cb4448080347 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 16 May 2022 18:19:18 -0700 Subject: web: add throw animation --- web/static/style.css | 10 ++++++++++ web/static/sw.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'web/static') diff --git a/web/static/style.css b/web/static/style.css index 47ae365..57c670a 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -372,6 +372,16 @@ body { filter: drop-shadow(0 0 0.4rem #111); } +@keyframes throw-anim { + 0% { transform: scale(8); } + 100% { transform: scale(1); } +} + +#controls #keypad-dartboard #dartboard g.overlay circle:last-child { + transform-box: fill-box; + transform-origin: center; +} + #controls .key { color: #ccc; background-color: #282828; diff --git a/web/static/sw.js b/web/static/sw.js index ba14e30..13e75af 100644 --- a/web/static/sw.js +++ b/web/static/sw.js @@ -1,5 +1,5 @@ const CACHE_PREFIX = 'dartboat-' -const CACHE_VERSION = '10'; +const CACHE_VERSION = '11'; const CACHE_NAME = `${CACHE_PREFIX}${CACHE_VERSION}`; const CACHE_FILES = [ -- cgit v1.2.3-70-g09d2