Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by zain3x

  1. my friend figured it out how to import gsap to ng2 This is my angular-cli:@webpack version angular-cli: 1.0.0-beta.22-1 node: 6.3.1 os: win32 x64 This is how we do it: just install gsap to project npm install gsap --save point the module at import area in *.ts component (doesn't need to use import) const TweenMax = require('gsap').TweenMax; play it in your *.ts component, maybe on click event handler var photo = document.getElementById("iconlibrary"); TweenMax.to(photo, 1.5, {x:"+200", repeat:-1, yoyo: true}); Hope it will be usefull~