1.0.4 • Published 9 months ago

gsap_directive v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

LICENCE

NPM

Diretiva-Gsap

Diretiva Gsap

Installation

You can install the directive via npm:

npm i gsap
npm i gsap_directive

Importe

main.ts

import gsap_directive from gsap_directive';
app.use(gsap_directive);

Usage

  <h1 v-gsap="{ 
      scrollTrigger: { 
        start: 'top center', 
        end: 'bottom center', 
        scrub: true ,
        markers: true,
      }, 
      animation: { 
        opacity: 1, 
        x: 100 
      }, 
      initialState: { 
        opacity: 1, 
        x: -100 
      } 
    }"
  
    >This is an about page </h1>

or

  <h1 v-gsap="{ 
      animation: { 
        opacity: 1, 
        x: 100 
      }, 
      initialState: { 
        opacity: 1, 
        x: -100 
      } 
    }"
  
    >This is an about page </h1>
1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago