V
V
Valentine2014-10-20 13:41:23
css
Valentine, 2014-10-20 13:41:23

How can CSS sprites be generated?

I am doing a project on Yii2 using LESS, I was interested in the question - is it possible to somehow (semi) automate the generation of sprites? I think it would be ideal to have a console utility that could take graphic files from a given directory, and output one PNG and .less with mixins, which I would import in my main style file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Belenkov, 2014-10-20
@gephaest

Oh sure. There are good solutions that generate sprites. Also available as grunt and gulp plugins.
I like this: https://github.com/Ensighten/spritesmith

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question