From 36c3f8bc534b54284d2612271374e9a8272fc8fd Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Tue, 3 Jun 2025 23:47:21 +0200 Subject: [PATCH] hover animation --- styles/resources.less | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/styles/resources.less b/styles/resources.less index 71a00c59..e0032e7a 100644 --- a/styles/resources.less +++ b/styles/resources.less @@ -2,12 +2,17 @@ --primary-color-fear: rgba(9, 71, 179, .75); --secondary-color-fear: rgba(9, 71, 179, .75); --shadow-text-stroke: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; + --fear-animation : all .3s ease; } #resources { min-height: calc(var(--header-height) + 4rem); min-width: 4rem; color: #d3d3d3; + transition: var(--fear-animation); + header, .controls, .window-resize-handle { + transition: var(--fear-animation); + } .window-content { padding: .5rem; #resource-fear { @@ -104,7 +109,7 @@ box-shadow: unset; border-color: transparent; header, .controls, .window-resize-handle { - visibility: hidden; + opacity: 0; } } &:has(.fear-bar) {