Merge branch 'fix-typo-drive' into 'main'
[ProtonMail-WebClient.git] / packages / pass / styles / _animation.scss
blobd2122c1588f94c10c091684062232fffa05e3712
1 @import '~@proton/styles/scss/lib';
3 .anime-fade-in,
4 .anime-fade-in > * {
5         animation: anime-fade-in var(--anime-duration, 0.25s) easing(ease-out-sine) var(--anime-delay, 0.1s) both;
8 .anime-fade-out,
9 .anime-fade-out > * {
10         animation: anime-fade-out var(--anime-duration, 0.25s) easing(ease-out-sine) var(--anime-delay, 0.1s) both;
13 @keyframes anime-fade-in {
14         from {
15                 opacity: 0;
16         }
18         to {
19                 opacity: var(--anime-opacity, 1);
20         }
23 @keyframes anime-fade-out {
24         from {
25                 opacity: 1;
26         }
28         to {
29                 opacity: 0;
30         }
33 .anime-reveal {
34         transition: max-block-size 0.25s ease-in-out;
35         max-block-size: var(--anime-max-height, rem(180));
36         min-block-size: 0;
37         overflow: hidden;
39         &--hidden {
40                 max-block-size: 0;
41         }