Skip to content

Commit 34a5c77

Browse files
committed
adicionando algumas animações e hover
1 parent 3961f32 commit 34a5c77

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

style.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ body *{
7979
left: 0;
8080
z-index: 1;
8181
transform: translateY(-50%);
82+
animation: slide-out 0.4s;
8283
}
8384
.light #switch button{
84-
right: 0;
85-
left: initial;
85+
animation: slide-in 0.4s forwards;
86+
}
87+
#switch button:hover{
88+
outline: 8px solid var(--highlight-color);
8689
}
8790
#switch span{
8891
display: block;
@@ -160,4 +163,22 @@ footer{
160163
.light{
161164
--background-image: url(assets/bg-desktop-light.jpg);
162165
}
166+
}
167+
168+
@keyframes slide-in{
169+
from {
170+
left: 0;
171+
}
172+
to {
173+
left: 50%;
174+
}
175+
}
176+
177+
@keyframes slide-out{
178+
from {
179+
left: 50%;
180+
}
181+
to {
182+
left: 0;
183+
}
163184
}

0 commit comments

Comments
 (0)