Use CSS3 transform instead of change in width for masthead menu underline effect
This commit is contained in:
parent
213e2fe3f3
commit
68b02cd8d8
2 changed files with 6 additions and 6 deletions
|
@ -227,17 +227,17 @@
|
|||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
height: 4px;
|
||||
background: mix(#fff, $primary-color, 50%);
|
||||
width: 0;
|
||||
width: 100%;
|
||||
transition: $global-transition;
|
||||
transform: scaleX(0); // hide
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:before {
|
||||
width: 100%;
|
||||
}
|
||||
&:hover:before {
|
||||
transform: scaleX(1); // reveal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue