Created
May 14, 2021 03:39
-
-
Save KevinTCoughlin/d45db2cb08f43f703c727fd25c945f07 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Easings | |
$ms-animation-ease-1: cubic-bezier(0.1,0.9,0.2,1) !default; | |
$ms-animation-ease-2: cubic-bezier(0.1,0.25,0.75,0.9) !default; | |
// Durations | |
$ms-animation-duration-1: 0.167s !default; | |
$ms-animation-duration-2: 0.267s !default; | |
$ms-animation-duration-3: 0.367s !default; | |
$ms-animation-duration-4: 0.467s !default; | |
// Outputs the properties for an animation. | |
@mixin ms-animation($names, $duration, $timing: $ms-animation-ease-1, $fillMode: both) { | |
// Set a default value for the version-scoped variable if it isn't assigned. | |
$ms-fabric-version-suffix: '' !default; | |
// Append the scoping suffix to each animation name. | |
$namelist: (); | |
@each $name in $names { | |
$newname: $name#{$ms-fabric-version-suffix}; | |
$namelist: append($namelist, $newname, 'comma'); | |
} | |
// Output the animation's properties. | |
animation-name: $namelist; | |
animation-duration: $duration; | |
animation-timing-function: $timing; | |
animation-fill-mode: $fillMode; | |
} | |
body { | |
@include ms-animation((ms-fadeIn, ms-slideLeftIn40), $ms-animation-duration-3, $ms-animation-ease-1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
animation-name: ms-fadeIn, ms-slideLeftIn40; | |
animation-duration: 0.367s; | |
animation-timing-function: cubic-bezier(0.1, 0.9, 0.2, 1); | |
animation-fill-mode: both; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment