Jump to content
Search Community

Mr Muddy

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

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

Mr Muddy's Achievements

2

Reputation

  1. Hi @mikel Thanks for that approach.. it set me on the path I needed to make it work. I've been slowly working through some of the docs as I've been building this.. I think Greensock could be my new favourite thing
  2. Hi all, Just started out with GSAP this morning and am kicking myself that I never looked at it before! I could have saved myself so many headaches in the past. Anyway, my first project is to deal with a fairly simple multi-slide animation on a site. A series of slides needs to appear, some animation of the content happens, then we move on to the next. The number of slides and the exact content of each slide is variable, so I've built a little script to iterate through the markup and create some nested timelines. There's a 'master' timeline which deals with the resizing of the main container and the transitions between the slides, then there's a 'child' timeline for each of the slides to animate the content. (Currently the codepen has a very simplistic version of these child timelines - they do more than just fade things up in sequence). Everything is working, and it was all pretty effortless.. I have two questions: 1) Given the code I've written, are there any glaringly bad things I've done. Are there better ways to implement this? (Please be gentle, it's literally my first GSAP code) 2) I want the animation to pause on hover. This is simple enough, and currently works, but at the moment, everything pauses. Is it possible for the currently active child timeline to complete, and then the parent to pause? So, when you mouse over, the currently visible slide would complete its own internal animation, but the parent would not then trigger the next. Thanks in advance! Tim
×
×
  • Create New...