summaryrefslogtreecommitdiff
path: root/src/sass/bootstrap4/mixins/_transition.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/sass/bootstrap4/mixins/_transition.scss')
-rw-r--r--src/sass/bootstrap4/mixins/_transition.scss13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sass/bootstrap4/mixins/_transition.scss b/src/sass/bootstrap4/mixins/_transition.scss
new file mode 100644
index 0000000..f853821
--- /dev/null
+++ b/src/sass/bootstrap4/mixins/_transition.scss
@@ -0,0 +1,13 @@
+@mixin transition($transition...) {
+ @if $enable-transitions {
+ @if length($transition) == 0 {
+ transition: $transition-base;
+ } @else {
+ transition: $transition;
+ }
+ }
+
+ @media screen and (prefers-reduced-motion: reduce) {
+ transition: none;
+ }
+}