Jump to content
Search Community

Search the Community

Showing results for tags 'refactor'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 2 results

  1. animateBanner() { let counter = 0; const intervalTime = 3000; const tlm = new TimelineMax({ paused: true }); setInterval(() => { if (counter === this.bannerPhotos.length) { tlm.to(this.banner.nativeElement, 0, { x: '-100vw' }); counter = 0; } tlm.to(this.banner.nativeElement, 1, { x: '-=100vw', ease: Sine.easeOut }); tlm.play(); counter++; }, intervalTime); } I am creating an infinite loop carousel with GSAP, I'm having issues with setInterval where the animation goes really fast when I switch to other tabs then I go back. How can I refactor the code above using the GSAP way.
  2. Hi All, I've created a fish eye scaling effect but it uses lots of individual tweens, it seems VERY redundant. I tried creating a timeline but it didn't work at all Would a timeline approach for this work, given I need the instance of the object being hovered?
×
×
  • Create New...