Skip to content

Instantly share code, notes, and snippets.

View pigeonfresh's full-sized avatar

pigeonfresh pigeonfresh

View GitHub Profile
@pigeonfresh
pigeonfresh / _base.scss
Last active April 20, 2021 07:44
A set of base styling
:root {
font-size: 100%;
}
*,
*:before,
*:after {
box-sizing: border-box;
}
@pigeonfresh
pigeonfresh / LerpedTimeline.ts
Last active August 9, 2019 19:48
A small class to be able to lerp a Greensock Timeline and handle it's progress
import { TimelineMax, TimelineLite, TweenMax } from 'gsap';
export default class LerpedTimeline {
public progress: number = 0;
public readonly timeline: TimelineMax | TimelineLite;
private readonly ease: number;
private currentProgress: number = 0;
constructor(timeline, ease: number = 0.1) {
this.timeline = timeline;
/*
* This mixin is used to calculate the max-width of an element within it's wrapper.
*
* The columns have a flexible width
* The columns are divided by a gutter
* The gutters have a fixed width of 40px
*
*/
@mixin column($columnsWanted, $total: 12) {