Добавил плавную анимацию при наведении
This commit is contained in:
@@ -17,7 +17,7 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: white;
|
color: orangered;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -44,6 +44,11 @@ h1 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 50%;
|
padding-top: 50%;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
transition: background-color 1s, color 1s;
|
||||||
|
}
|
||||||
|
.face:hover {
|
||||||
|
background-color: orangered;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.front {
|
.front {
|
||||||
|
|||||||
Reference in New Issue
Block a user