marcodellabate

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

2 Newbie

About marcodellabate

  • Rank
    Member
  1. I don't know if it's only me, but it looks like Angular 6 has become a lot more strict with the TS syntax than before.
  2. That actually made the trick, the error is gone now. Thanks!!
  3. import 'gsap'; import TweenMax from 'gsap'; import Draggable from 'gsap/Draggable'; These are the imports, and this is a small portion of the code that uses _gsTransform Draggable.create("#foo", { type: "rotation", bounds:{ minRotation:0, maxRotation:270 }, onDrag: function () { angle = $("#foo")[0]._gsTransform.rotation; tell me if you need something more
  4. Hello, I'm building an application with Angular 6 that includes Draggable. I've imported Draggable successfully and the application works perfectly but I keep getting this typescript error: error TS2339: Property '_gsTransform' does not exist on type 'HTMLElement'. How can I get rid of this irritating error? Thanks!
  5. marcodellabate

    Can't get CustomEase to work with Angular

    The result is the same, even in the console log
  6. marcodellabate

    Can't get CustomEase to work with Angular

    There are all the easings names under easing (Back, BackIn ecc.) but I don't see any CustomEase
  7. marcodellabate

    Can't get CustomEase to work with Angular

    I'm sorry but I'm new to angular and I still have to learn. I added the line you provide, and while I don't get any error in VSCode, I still get a "CustomEase not defined" error in the firefox console.
  8. marcodellabate

    Can't get CustomEase to work with Angular

    Now when I start the ng serve I get this error ERROR in node_modules/@types/gsap/index.d.ts(14,5): error TS2300: Duplicate identifier 'export='. src/typings.d.ts(6,44): error TS2300: Duplicate identifier 'export='. EDIT: Solved by adding this line to tsconfig.json "paths" : { "*" : [ "../TSProjectA/node_modules/@types/*", "./node_modules/@types/*", "*" ] }, but I keep getting the CustomEase error defined in the first post
  9. marcodellabate

    Can't get CustomEase to work with Angular

    Okay, I've tried to delete gsap to do a fresh install. I've used this code npm install -S gsap @types/greensock I've added this line to the main.ts file import 'gsap'; but when I put my tweenings into app.component.ts I get this error: The TimelineMax name was not found same goes for CustomEase. Where am I going wrong?
  10. marcodellabate

    Can't get CustomEase to work with Angular

    Good morning, I'm making a project with Angular 5 and I've imported GSAP along with TimelineMax but I can't seem to get CustomEase to work. The terminal doesn't give me errors but when I load the page in the browser I get the "Error: CustomEase is not defined" Can someone explain me the exact procedure to import and use CustomEase? Maybe I'm missing something.