-
-
Save delphinpro/1791877429a5e794cf81a192571ff70d 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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin transition-base($properties...){ | |
// Свойство transition-property по-умолчанию равно значению all | |
// т.е. запись transition: 250ms ease 0s; будет | |
// эквивалентна записи transition: all 250ms ease 0s; | |
transition: 250ms ease 0s; | |
@if length($properties) > 0 { | |
transition-property: $properties; | |
} | |
} | |
.s1 { | |
@include transition-base(); | |
} | |
.s2 { | |
@include transition-base(padding, color, border-color); | |
} |
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
.s1 { | |
transition: 250ms ease 0s; | |
} | |
.s2 { | |
transition: 250ms ease 0s; | |
transition-property: padding, color, border-color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment