mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-01 06:53:18 +02:00
23 lines
451 B
SCSS
23 lines
451 B
SCSS
// Transitions - Standalone implementation
|
|
// Decoupled from Bootstrap 5
|
|
|
|
// Variables
|
|
$enable-transitions: true !default;
|
|
$enable-reduced-motion: true !default;
|
|
|
|
$transition-fade: opacity 0.15s linear !default;
|
|
|
|
// Fade transition
|
|
.fade {
|
|
transition: $transition-fade;
|
|
|
|
@if $enable-reduced-motion {
|
|
@media (prefers-reduced-motion: reduce) {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
&:not(.show) {
|
|
opacity: 0;
|
|
}
|
|
} |