Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

AceBoy

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Newbie

About AceBoy

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I know that I shouldn't do it. But after changing place of .js (eg. outside "src" folder) I have an error Module '../../../vendors/DrawSVGPlugin' was resolved to 'd:/Ionic/TestAnimacja/vendors/DrawSVGPlugin.js', but '--allowJs' is not set. Also I needed to change way of importing to: import * as DrawSVGPlugin from "../../../vendors/DrawSVGPlugin"; When I added in tsconfig.json a line: "compilerOptions": { "allowJs": true, } I have that error: [21:01:57] typescript error Cannot write file 'd:/Ionic/TestAnimacja/vendors
  2. First of all Ionic uses Typescript. That's why it could be a problem. After some testing I came to the conclusion: No errors while using import { DrawSVGPlugin } from "gsap/DrawSVGPlugin" But when I added to the method where I'm making an animation this line - console.log(DrawSVGPlugin), happened something strange. In console it says "undefined" and the animation was done. So maybe by using console.log I made an initialization of that plugin? But on the other hand, console.log always says "undefined" value. Maybe should I do something more besises pa
  3. Hello. Recently I bought a package which contains DrawSVGPlugin. I want to implement this plugin in Ionic3 . As I know a npm package doesn't have plugins from club, nor @types/gsap. I added DrawSVGPlugin.js into node_modules/gsap and later recreated an android platform. In .ts file as import I tried: import { DrawSVGPlugin } from "gsap/DrawSVGPlugin"; and as calling plugin: TweenLite.to("#svg_1", 1, {drawSVG:"40% 60%", ease:Power1.easeInOut}); my html source of svg: <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
×