Jump to content
Search Community

Sagi Karni

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Sagi Karni

  1. Hi,

    I'm trying to start using gsap in Vue with Typescript application.

    I started to download gsap using npm (npm i gsap).

    Then I wanted to import the library by :

    import { TweenLite, Linear } from 'gsap'; 

    Then i got the following error :

    "cannot resolve definitions for module gsap"

    I assumes I need to install typescript definition (right ?)

    npm install @types/greensock
    

    and added the following in the tsconfig.app.json

    "types": ["greensock"]

    Now I get the following error :

    Duplicated Identifier 'Animation' (see atached screen)

     

    Any advice ?

    Thx

    Sagi

     

     

     

     

    gsap.png

  2. Hi , 

    I would approciate if you could help with the following scenario.

    I would like yo use a dragable object (lets assume a rectangle ) on top of an image (or any div with a background image) which is completely hidden exept

    the arae inside this dragable object (e.g. "Drag me"). The drag expirience should be as the following codepen demo

    The attached image illustrate how the image looks like and how it should look like when the only part that is not hidden is the dragable object area.

     

    Thanks

    Sagi

     

     

    See the Pen YPvdYv by GreenSock (@GreenSock) on CodePen

     

     

     

    Picture3.jpg

×
×
  • Create New...