From a18e06d3c765db62b636ff40638e958255591c83 Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Thu, 1 Nov 2018 01:35:18 +0100 Subject: [PATCH] Fix bug in info page animation --- client/service-worker.js | 2 +- client/styles.css | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/service-worker.js b/client/service-worker.js index 0db75f6..1179978 100644 --- a/client/service-worker.js +++ b/client/service-worker.js @@ -1,4 +1,4 @@ -var CACHE_NAME = 'my-site-cache-v1'; +var CACHE_NAME = 'snapdrop-cache-v1.0'; var urlsToCache = [ '/', '/styles.css', diff --git a/client/styles.css b/client/styles.css index c3a638a..2a60ab2 100644 --- a/client/styles.css +++ b/client/styles.css @@ -497,9 +497,13 @@ input { border-radius: 50%; background: var(--primary-color); transform: scale(0); + z-index: -1; +} + +/* Hack such that initial scale(0) isn't animated */ +#about x-background{ will-change: transform; transition: transform 800ms cubic-bezier(0.77, 0, 0.175, 1); - z-index: -1; } #about:target x-background {