@Craig sorry I missed something out and spoke too soon Can I please bug you some more....
In my getElementById pen https://codepen.io/Juc1/pen/qBdpmOQ the mouseover event on the box div triggers the timeline which animates other objects individually within the same svg:
tl1.to(".mytitle", {duration:.5, fill:"lime"});
tl1.to(".rectangle-big", {duration:.5, opacity:0});
tl1.to(".myimage", {duration:.5, rotation:20});
tl1.to(".rectangle-small", {duration:.5, rotation:-20});
So my aim is to do the same thing when there are multiple boxes on the same page.
With your querySelectorAll code https://codepen.io/Juc1/pen/NWqypwV
1. mouseover / mouseout event targets the box class
2. the box class event fires the timeline
3. the timeline (eg rotation) acts on all parts of the svg together
Could you please adjust the querySelectorAll pen so that after box class event, the timeline targets individual objects within the same svg?