Jump to content
Search Community

glinkot

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by glinkot

  1. Hi Blake, I was wondering if an updated version of these is around now? Cheers
  2. I'm wondering whether the new release of Angular, with it's improved hooks for animation, removes some of the historical issues with GSAP? I'm unfortunately only getting started so I can't tell if it helps or not! https://www.yearofmoo.com/2017/06/new-wave-of-animation-features.html It seems you can set your own animations to elements - if GSAP could be made to handle those, it could stop the 'fighting' between the two frameworks I've heard mentioned...
  3. Brilliant! Thanks so much for the prompt help Dipscom
  4. Apologies if this is dumb - I'm only familiarising myself with GS but it looks very promising. I've taken the below from an example codepen, but the 'onComplete' callback executes once for every character in the div I animate. I thought 'completeAll' might be the ticket, but I didn't get that happening. Am I missing something obvious? Thanks // Takes a text div id eg #myDiv or .blah export function DivPerspectiveAppear(identifier: string): void { var tl = new TimelineLite, mySplitText = new SplitText(identifier, { type: "words,chars" }), chars = mySplitText.chars; //an array of all the divs that wrap each character TweenLite.set(identifier, { perspective: 400 }); tl.staggerFrom(chars, 2, { opacity: 0, scale: 0, y: 80, rotationX: 180, transformOrigin: "0% 50% -50", ease: g.Back, onComplete: doStuff }, 0.01, "+=0"); } export function doStuff(): void { console.log("it is done.") }
×
×
  • Create New...