Is it possible to ‘animate’ the code of an SVG?

Yes, I just solved the problem by inverting the logic in the JS as the items were first hidden.
Not it works on the first click.

I'm not a developer but here I drew everything in Illustrator by optimizing the elements so the SVG code is clean and accessible.
Then wrote all the JS functions.
And edited the texts and their positions without a roundtrip to Illustrator.

2 Likes

Welcome to the club of „scripting“. Not really developing but applying some logic in a syntax led language instead of the sequential action stack you find under interaction. It comes down to a similar logic, but an open syntax is more powerful (but sometimes confusing to look at). I really love this about Hype that people actually cross this threshold occasionally. That said, there is much more coming for the stackable actions sector very soon. Congratulations on the map looks really nice!

1 Like