$neutral-10: #14191f;
$neutral-20: #333333;
$neutral-30: #3D4A5C;
$neutrals: ("10": $neutral-10, "20": $neutral-20, "30": $neutral-30);
@each $key, $color in $neutrals {
.text-neutral-#{$key} {
color: $color;
}
}
$.fn.isInViewport = function() {
var elementTop = $(this).offset().top;
var elementBottom = elementTop + $(this).outerHeight();
var viewportTop = $(window).scrollTop();
var viewportBottom = viewportTop + $(window).height();
return elementBottom > viewportTop && elementTop < viewportBottom;
};
div.style.cssText=`height: this.height;
width: 20px;
`;
div.style.cssText=`height: ${this.height}; width: 20px;`