transition on logo hover
This commit is contained in:
parent
5a891c085d
commit
15a4388490
@ -57,10 +57,25 @@ body {
|
|||||||
background-image: url('../images/logo.png');
|
background-image: url('../images/logo.png');
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo:hover {
|
.logo::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
background-image: url('../images/logo_hover.png');
|
background-image: url('../images/logo_hover.png');
|
||||||
|
background-size: cover;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo:hover::before {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon_profile {
|
.icon_profile {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user