mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 07:50:32 +05:30
Немного изменены анимации для попапа
This commit is contained in:
parent
d3c68e8847
commit
51e443e74a
@ -20,6 +20,8 @@ $popupPadding: 20px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
perspective: 600px;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
@ -104,12 +106,14 @@ $popupPadding: 20px;
|
||||
/**
|
||||
* Transition states
|
||||
*/
|
||||
$popupInitPosition: translateY(10%) rotateX(-8deg);
|
||||
|
||||
.trEnter {
|
||||
opacity: 0;
|
||||
|
||||
.popup {
|
||||
opacity: 0;
|
||||
transform: translateY(-30%);
|
||||
transform: $popupInitPosition;
|
||||
}
|
||||
|
||||
&Active {
|
||||
@ -118,8 +122,8 @@ $popupPadding: 20px;
|
||||
|
||||
.popup {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
transition: 0.2s ease;
|
||||
transform: translateY(0) rotateX(0deg);
|
||||
transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1); // easeOutQuint
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -138,8 +142,8 @@ $popupPadding: 20px;
|
||||
|
||||
.popup {
|
||||
opacity: 0;
|
||||
transform: translateY(30%);
|
||||
transition: 0.2s ease;
|
||||
transform: $popupInitPosition;
|
||||
transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); // easeOutQuart
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ $userBarHeight: 50px;
|
||||
|
||||
.isPopupActive {
|
||||
filter: blur(5px);
|
||||
transition: filter 0.4s ease;
|
||||
transition: filter 0.4s 0.1s ease;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user