]> git.ardis.lu - utf-8-visualizer/commitdiff
Transition border-color on hover
authorArdis Lu <ardisglu@gmail.com>
Sun, 13 Jul 2025 22:17:58 +0000 (15:17 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 13 Jul 2025 22:17:58 +0000 (15:17 -0700)
index.html

index bfedba4e86983aa60dcd301d6966de45dfb98ba0..cbb90b31b7f4dbdd71bad2a6aee2670e9231209a 100644 (file)
@@ -49,7 +49,7 @@
         border-radius: 4px;
         padding: 4px;
         animation: 800ms fadeIn both;
-        transition: filter 800ms;
+        transition: filter 800ms, border-color 600ms;
         --index-order: 1;
         z-index: calc(var(--index-order) * var(--i));
         counter-increment: n;
@@ -59,7 +59,8 @@
       :host(:hover),
       :host(:focus-within) {
         filter: drop-shadow(0 0 4px hsl(222deg 50% 50%));
-        transition: filter 400ms;
+        border-color: hsl(222deg 45% 55%);
+        transition: filter 400ms, border-color 200ms;
 
         &::before {
           opacity: 1;
This page took 0.039234 seconds and 4 git commands to generate.