Skip to content

Instantly share code, notes, and snippets.

Avatar

Geoff Foley GeoffFoley

View GitHub Profile
@GeoffFoley
GeoffFoley / _sass-marpad.scss
Last active April 17, 2018 22:41
Sass MarPad: A Sass Mixin
View _sass-marpad.scss
// ************************************************** //
// //
// Mixin to set padding / margins by breakpoint //
// //
// ************************************************** //
@mixin sass-marpad($prop: margin, $order: false, $breakpoint: false)
{
@if $breakpoint == false
{
@GeoffFoley
GeoffFoley / _colorFader.scss
Last active April 17, 2018 22:09
Color Fader: A Sass Mixin
View _colorFader.scss
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// //
// mixin: colorFader //
// params: $animationName, $colorList //
// $animationName: The name you want to give your animation //
// $colorList: The list of colors you want to cycle through //
// //
// Divides 100% by the color count to get the $interval and //
// increments the $frame by ($frame + $interval) //
// //