Mobile app version of vmapp.org
Login or Join
Kimberly620

: Svg sprite from Illustrator (with separate viewBox for each element)? Is there a way to export an .svg sprite directly from Illustrator, with a separate viewBox for each element? I am only able

@Kimberly620

Posted in: #AdobeIllustrator #Artboard #Sprite #Svg

Is there a way to export an .svg sprite directly from Illustrator, with a separate viewBox for each element?

I am only able get one viewBox for the whole set of icons, even when each of them is on its own artboard.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves566

I seem to have found the solution - each sprite element must be converted to a symbol. That creates a viewBox for each symbol when exporting the svg.

An example:

<symbol id="badminton" data-name="badminton" viewBox="0 0 33.84 40.41">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme