Skip to content

Instantly share code, notes, and snippets.

@delphinpro
Last active September 6, 2017 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delphinpro/1791877429a5e794cf81a192571ff70d to your computer and use it in GitHub Desktop.
Save delphinpro/1791877429a5e794cf81a192571ff70d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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);
}
.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