src.assets.style.global._animations.scss Maven / Gradle / Ivy
The newest version!
/*!
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
@import 'global/mixins';
@mixin box-shadow-animation($animation_name: none,
$fromOffsetX: 0,
$fromOffsetY: 0,
$fromBlur: 0,
$fromSpread: 0,
$fromColor: rgba(0, 0, 0, 0),
$fromInset: false,
$toOffsetX: 0,
$toOffsetY: 0,
$toBlur: 0,
$toSpread: 0,
$toColor: rgba(0, 0, 0, 0),
$toInset: false) {
@include keyframe($animation_name) {
0% {
@include box-shadow($fromOffsetX, $fromOffsetY, $fromBlur, $fromSpread, $fromColor, $fromInset);
}
100% {
@include box-shadow($toOffsetX, $toOffsetY, $toBlur, $toSpread, $toColor, $toInset);
}
}
}
@mixin border-animation($animation_name: none,
$fromWidth: medium,
$fromStyle: none,
$fromColor: currentcolor,
$toWidth: medium,
$toStyle: none,
$toColor: currentcolor) {
@include keyframe($animation_name) {
0% {
border-width: $fromWidth;
border-style: $fromStyle;
border-color: $fromColor;
}
100% {
border-width: $toWidth;
border-style: $toStyle;
border-color: $toColor;
}
}
}
@mixin color-animation($animation_name: none, $fromColor: rgba(0, 0, 0, 0), $toColor: rgba(255, 255, 255, 0)) {
@include keyframe($animation_name) {
0% {
color: $fromColor;
}
100% {
color: $toColor;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy