seokju-na / finn

Animation! Fun! Cool!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finn

avatar1

Cool!

Usage

import { AnimationRegistry, FlyInOutAnimationBehavior } from '@sj/finn';


const registry = new AnimationRegistry();

registry
    .setAnimationBehavior('flyInOut', FlyInOutAnimationBehavior)
    .setAnimationBehavior('customAnim', MyCustomAnimationBehavior);

registry.registerScrollReactAnimation({
    element: document.getElementById('ho'),
    behaviorId: 'flyInOut',
    offsetFallback: 'vertical',
    threshold: 0,
})

License

MIT Licensed

About

Animation! Fun! Cool!


Languages

Language:TypeScript 91.1%Language:CSS 8.9%