From 32602571088087f43e84527108b6c981d3422219 Mon Sep 17 00:00:00 2001 From: imnyang Date: Mon, 20 Jan 2025 21:35:33 +0900 Subject: [PATCH] rotate --- app/app.css | 22 ++++++++++++++++++++-- app/components/Top.tsx | 37 +++++++++++++++++++------------------ 2 files changed, 39 insertions(+), 20 deletions(-) diff --git a/app/app.css b/app/app.css index 3a128d7..0b67568 100644 --- a/app/app.css +++ b/app/app.css @@ -2,8 +2,26 @@ @tailwind components; @tailwind utilities; -html, body { +html, +body { background-color: #0a0a0a; color-scheme: dark; height: 100%; -} \ No newline at end of file +} + +#avatar { + transition: transform 0.5s linear; +} + +#avatar:hover { + animation: rotate 1s linear infinite; +} + +@keyframes rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} diff --git a/app/components/Top.tsx b/app/components/Top.tsx index 22c8a63..31099e7 100644 --- a/app/components/Top.tsx +++ b/app/components/Top.tsx @@ -1,20 +1,21 @@ export default function Top() { - return ( -
- imnyang -
-

암냥

-

@imnyang

-
+ return ( +
+ imnyang +
+

암냥

+

@imnyang

- ); -} \ No newline at end of file +
+ ); +}