forked from tilde.black/ops
Reintroduce awesome CSS transition for menu entries
This commit is contained in:
parent
f5032974f1
commit
b27d049257
|
@ -160,24 +160,23 @@ h3 {
|
|||
text-align: center;
|
||||
transition: color 0.7s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
font-family: "blankaregular";
|
||||
max-width: 60vw;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#main-nav .links a:hover {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
#main-nav .links a::after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
//display: block;
|
||||
//position: absolute;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
top: 0;
|
||||
transform: scaleX(0);
|
||||
transform-origin: left center;
|
||||
//transform: scaleX(0);
|
||||
//transform-origin: left center;
|
||||
transition: background-color 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
background-color: #fc03cf;
|
||||
z-index: -1;
|
||||
//z-index: -1;
|
||||
}
|
||||
|
||||
#main-nav .links a:hover::after {
|
||||
|
|
Loading…
Reference in New Issue