Skip to content

Commit

Permalink
added transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Feb 16, 2018
1 parent d0492b3 commit 6c119fc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions scss/mixins/_transition.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// TODO: refactorization

@mixin transition($transition...) {
-moz-transition: $transition;
-o-transition: $transition;
-webkit-transition: $transition;
transition: $transition;
}

@mixin transition-property($property...) {
-moz-transition-property: $property;
-o-transition-property: $property;
-webkit-transition-property: $property;
transition-property: $property;
}

@mixin transition-duration($duration...) {
-moz-transition-property: $duration;
-o-transition-property: $duration;
-webkit-transition-property: $duration;
transition-property: $duration;
}

@mixin transition-timing-function($timing...) {
-moz-transition-timing-function: $timing;
-o-transition-timing-function: $timing;
-webkit-transition-timing-function: $timing;
transition-timing-function: $timing;
}

@mixin transition-delay($delay...) {
-moz-transition-delay: $delay;
-o-transition-delay: $delay;
-webkit-transition-delay: $delay;
transition-delay: $delay;
}
1 change: 1 addition & 0 deletions scss/mixins/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import 'border';
@import 'media';
@import 'transform';
@import 'transition';
@import 'animations';

//outline
Expand Down

0 comments on commit 6c119fc

Please sign in to comment.