Ok thanks I was just wondering if the index parameter was needed / doing anything in Jack's codepen. If anyone knows a gsap foreach codepen which uses the index parameter please tell me because I would be interested to see what it can do ?
A question please about your codepen
newyork.forEach((el, i) => {
Is the second parameter i needed - what work is it doing? It seems to work fine without the second parameter = https://codepen.io/Juc1/pen/BaVPqew
Hi all
in my codepen the timeline runs and reverses for all cases of ".newyork" at the same time. Instead of this can anyone please show me how to say run and reverse the timeline for just the first instance of ".newyork", then when that is done, run and reverse the timeline for just the second instance of ".newyork" - and so on for each instance of ".newyork" ?
Hi all,
In my codepen I am using drawsvg to draw the stroke which has stroke-width:18px - but how would I do this for an uneven stroke something like the Canva logo below?
I am not asking can drawsvg draw uneven widths? - I think the answer is no - so I am asking is there some workaround or different approach for this.
If i draw the letters with strokes then I can use drawsvg but I am stuck with a fixed stroke-width.
If I draw the letters with fills / shapes instead of strokes then I can have the variation in width but I can't use drawsvg.
I guess I could use drawsvg and apply masks to thin sections of the stroke but is there a better way with or without drawsvg?
Hi all,
My SVG flower classes animate in the order given by the HTML = pink, blue, red, purple - can anyone please tell me how I could say - animate in a random order each time the page is loaded eg blue first, next time red first etc
Hi all,
I want to say:
when image 1 enters the viewport, run the timeline on image 1
when image 2 enters the viewport, run the timeline on image 2
etc
But so far I am getting - when image 1 enters the viewport, run the timeline on all the images at the same time.
Can anyone please correct my pen?
Thanks...
My pen is simplified in order to ask the question so hopefully it would make more sense with the background details. But anyway thanks a lot for your help ?