rotate
This commit is contained in:
parent
394e0d1315
commit
3260257108
2 changed files with 39 additions and 20 deletions
20
app/app.css
20
app/app.css
|
|
@ -2,8 +2,26 @@
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
html, body {
|
html,
|
||||||
|
body {
|
||||||
background-color: #0a0a0a;
|
background-color: #0a0a0a;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#avatar {
|
||||||
|
transition: transform 0.5s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
#avatar:hover {
|
||||||
|
animation: rotate 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes rotate {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export default function Top() {
|
||||||
alt="imnyang"
|
alt="imnyang"
|
||||||
width={200}
|
width={200}
|
||||||
height={200}
|
height={200}
|
||||||
|
id="avatar"
|
||||||
className="rounded-full"
|
className="rounded-full"
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue