From 4378d85fe819e649afaffa3c28f8cc12e6dfb598 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 24 Dec 2025 16:46:09 +0800 Subject: [PATCH] =?UTF-8?q?style:=20dash=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/layout.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/routes/layout.css b/src/routes/layout.css index 421361e..62d6a61 100644 --- a/src/routes/layout.css +++ b/src/routes/layout.css @@ -1,5 +1,25 @@ @import "tailwindcss"; @plugin "@tailwindcss/forms"; + +@theme { + --animate-dash: dash 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; + + @keyframes dash { + 0% { + stroke-dasharray: 1, 150; + stroke-dashoffset: 0; + } + 50% { + stroke-dasharray: 90, 150; + stroke-dashoffset: -40; + } + 100% { + stroke-dasharray: 90, 150; + stroke-dashoffset: -120; + } + } +} + @plugin "daisyui" { logs: false; }