Reintroduce awesome CSS transition for menu entries

This commit is contained in:
southerntofu 2019-08-26 22:59:52 +02:00
parent f5032974f1
commit b27d049257
1 changed files with 7 additions and 8 deletions

View File

@ -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 {