diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-27 10:04:46 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-27 10:04:46 +0200 |
commit | ffefeed888fe6f221a79575f8624257571eacf8d (patch) | |
tree | a40721186f380e51d071ec9385e04a6ef78c9558 /styles | |
parent | 94824d7b8a12eb0d9d55935649c477ba65abe780 (diff) |
loop selection working + fix #1
Diffstat (limited to 'styles')
-rw-r--r-- | styles/selection.css | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/styles/selection.css b/styles/selection.css index 6e16cee..a139367 100644 --- a/styles/selection.css +++ b/styles/selection.css @@ -2,8 +2,8 @@ --selection-color: var(--gruble); --corner-size: 12px; filter: drop-shadow(0px 0px 16px var(--selection-color)); - transition-duration: 100ms; - transition-property: transform, opacity; + transform: scale(calc(0.5 * var(--visibility) + 0.5)); + opacity: var(--visibility); } .selection .bar.top, @@ -57,7 +57,3 @@ opacity: .15; } -.selection.hidden { - transform: scale(0.5); - opacity: 0; -} |