Hi folks,
I'v been going around in circles for a while now, so thought I'd better ask for some help.
Okay, so I'm using opacity to fade in and out various child elements of an SVG and thusly animate a stickman. I have several timelines nested inside a master timeline and for now a mouseenter event listener to play the sequence. It's been working mostly as I've anticipated but for some strange behaviour relating to the fourth and last timelines.
Issues:
1. The forth timeline animates through 'frames' of a morphing shadow, but for some reason the first frame ('.shadow-morph-1') appears at the very start of the master timeline. For some reason I was able to remedy this by putting a delay of .001 as a default on the child timeline, but I'm sure this isn't ideal.
2. The last timeline seems to have the same issue, its first 'frame' (stickman-r-1) is visible at the start of the parent timeline, and also when it completes stickman-9 remains visible when this timeline should have set its opacity to 0.
I can see in the chrome inspector that these elements have their opacity set inline, to 1 when the page loads (stylesheet shows 0 for opacity), but I have checked the element in the code editor (VSCode) and there is no style attribute, so this must be being set in the timeline.
Sequence:
First Timeline
name: taDa()
desc: 'Hands on hips' through to 'pointing at bag'
stickman-1 through to stickman-9 (and shadow-1 to shadow-9 )
Fourth Timeline
name: shadowMorph()
desc: shadow becomes a circle
selectors: shadow-9 to shadow-morph-1 through to shadow-morph-4
Last Timeline:
name: toRest()
desc: 'Pointing at bag' through to 'hands on hips'
stickman-9 to stickman-r-1 and stickman-r-2, to stickman-1
I'm sorry the it's a bit of a complex animation. I've been trying to shorten it and make it simpler, but I think that will just make it more confusing. That said any suggestions on how I can make it easier to follow are very welcome.
Thanks in advance for any offerings.