Skip to content

Commit

Permalink
feature(fade): Added fade-in and fade-out placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
jorik12345 committed Jun 1, 2021
1 parent a807bb6 commit a1ec5b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import 'utilities/contain';
@import 'utilities/container';
@import 'utilities/display';
@import 'utilities/fade-in-out';
@import 'utilities/flexembed';
@import 'utilities/font-sizes';
@import 'utilities/hidden';
Expand Down
17 changes: 17 additions & 0 deletions src/scss/utilities/_fade-in-out.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// FadeInOut extends
@each $breakpoint in map-keys($global-breakpoints) {
@include break($breakpoint) {
$responsive-modifier: breakpoint-infix($breakpoint, $global-breakpoints);

%hide-for-fade-in#{$responsive-modifier} {
opacity: 0;
visibility: hidden;
transition: opacity 0.2s, visibility 0.2s;
}

%show-for-fade-in#{$responsive-modifier} {
opacity: 1;
visibility: visible;
}
}
}

0 comments on commit a1ec5b2

Please sign in to comment.