@liqvid/gsap
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@liqvid/gsap

This module provides GSAP integration for Liqvid.

Installation

$ npm install @liqvid/gsap

Usage

See the GSAP docs and especially the React section.

import {useTimeline} from "@liqvid/gsap";
import {useEffect} from "react";

export function Demo() {
  const tl = useTimeline();
  
  useEffect(() => {
    tl.to(".box", {duration: 3, x: 800});
    tl.to(".box", {duration: 3, rotation: 360, y: 500});
    tl.to(".box", {duration: 3, x: 0});
  }, []);
  
  return (
    <section>
      <div className="box orange"></div>
      <div className="box grey"></div>
      <div className="box green"></div>
    </section>
  );
}

Readme

Keywords

Package Sidebar

Install

npm i @liqvid/gsap

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.76 kB

Total Files

6

Last publish

Collaborators

  • yuri