From a915e2c510ae9d74506441ad4540bfd8db13b13e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 9 Jul 2023 23:31:22 -0500 Subject: [PATCH] Tweaks --- src/data/HexGrid.vue | 45 ++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/data/HexGrid.vue b/src/data/HexGrid.vue index 20e927c..6791d5d 100644 --- a/src/data/HexGrid.vue +++ b/src/data/HexGrid.vue @@ -1,17 +1,17 @@ @@ -65,14 +65,14 @@ function resetHoveredCell() { } .row { - margin-top: -1vmin; + margin-top: -1vw; } .hexagon-wrapper { position: relative; - width: 5vmin; - height: 5vmin; - margin: 0.2vmin; + width: 5vw; + height: 5vw; + margin: 0.2vw; } .hexagon-wrapper::before, @@ -81,9 +81,9 @@ function resetHoveredCell() { .hexagon-overlay::after { content: ""; position: absolute; - bottom: 0.1vmin; + bottom: 0.1vw; width: 50%; - height: 0.6vmin; + height: 0.6vw; backdrop-filter: blur(3px); background-color: var(--color); transform-origin: bottom; @@ -111,7 +111,6 @@ function resetHoveredCell() { height: 100%; backdrop-filter: blur(3px); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); - transition-duration: 0s; } .hexagon-overlay { @@ -125,6 +124,12 @@ function resetHoveredCell() { animation: bounce 1s infinite; } +/* for some reason the transition is instant sometimes when hovering stops */ +.fade-enter-from, +.fade-leave-to { + opacity: 0; +} + @keyframes bounce { 0%, 100% { transform: translateY(-15px);