/**
 * Copyright 2021 Jiri Skoda <developer@skodaj.cz>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* File defining some animations */

.animation-slideup{
    animation: animation-slideup;
    animation-duration: 500ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}

@keyframes animation-slideup {
    from{
        transform: translateY(100%);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}


.animation-slidedown{
    animation: animation-slidedown;
    animation-duration: 500ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}

@keyframes animation-slidedown {    
    from{
        transform: translateY(0);
        opacity: 1;
    }
    to{
        transform: translateY(100%);
        opacity: 0;
    }
}

.animation-fadein{
    animation: animation-fadein;
    animation-duration: 500ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: display, opacity;
}

@keyframes animation-fadein {
    from{
        display: block;
        opacity: 0;
    }

    to{
        display: block;
        opacity: 1;
    }
}

.animation-footerexpand{
    animation: animation-footerexpand;
    animation-duration: 500ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: height;
}

@keyframes animation-footerexpand{
    from{
        height: calc(1em + 15px);
    }
    to{
        height: 200px;
    }
}

.animation-footercollapse{
    animation: animation-footercollapse;
    animation-duration: 500ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: height;
}

@keyframes animation-footercollapse{
    from{
        height: 200px;
    }
    to{
        height: calc(1em + 15px);
    }
}