Skip to content

Instantly share code, notes, and snippets.

@pigeonfresh
pigeonfresh / fluid-shizzle.scss
Last active July 14, 2021 15:42
Fluid SCSS function
@function strip-unit($number) {
@if type-of($number) == "number" and not unitless($number) {
@return $number / ($number * 0 + 1);
}
@return $number;
}
@function fluid(
$startValue,
$endValue,
import { gsap, Power3 } from 'gsap';
export const baseTransition = (
elements: HTMLElement | ReadonlyArray<HTMLElement>,
props?: gsap.AnimationVars,
): gsap.core.Animation =>
gsap.from(elements, {
duration: 1.2,
y: 40,
ease: Power3.easeOut,
@pigeonfresh
pigeonfresh / C02TitleAndTextTransitionController.ts
Created February 19, 2020 18:59
Default transitions for Muban
import { MubanTransitionController, IMubanTransitionMixin } from 'muban-transition-component';
import { TimelineMax } from 'gsap';
import C02TitleAndText from './C02TitleAndText';
import { verticalFadeIn } from '../../../util/transition-helpers';
class C02TitleAndTextTransitionController extends MubanTransitionController {
protected setupTransitionInTimeline(
timeline: TimelineMax,
parent: C02TitleAndText,
id: string,
@Villanuevand
Villanuevand / README-español.md
Last active September 16, 2024 00:10
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@PurpleBooth
PurpleBooth / README-Template.md
Last active September 18, 2024 04:31
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites