This file contains hidden or 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
@mixin element($name) { | |
@at-root #{&}__#{$name}{ | |
@content; | |
} | |
} | |
@mixin modifier($name) { | |
@at-root #{&}--#{$name} { | |
@content; | |
} |
This file contains hidden or 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
/* | |
* Nifty Animate | |
* Micro library to animate elements with CSS based on scroll position | |
* Requires: Lodash throttle & debounce | |
* Author: Franco Moya - @iamravenous | |
* Version: 1.1 Beta | |
*/ | |
const offset = el => { | |
const rect = el.getBoundingClientRect(); |
OlderNewer