Transition: Don't animate height
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
So use a background div to squeeze and move other elements as well
This commit is contained in:
@@ -7,13 +7,35 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
z-index: 10000;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: $color-primary;
|
||||
will-change: height, transform, padding-top, padding-bottom;
|
||||
will-change: transform;
|
||||
|
||||
// Content
|
||||
&__loader {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
// Background
|
||||
&__background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: $color-primary;
|
||||
transform-origin: 50% 0;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
// Hidden
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user