Answer the question
In order to leave comments, you need to log in
Gulp-svg-sprites - multiple sprites, how to do?
I am using gulp-svg-sprites to generate svg sprites. At the output I get .css, which is converted into a .scss file with sprite styles and .svg sprite, respectively. Scss is subsequently compiled into a common file with styles and sent to the project in this form. This .scss file has the following code:
.icon:before {
content:' ';
vertical-align:middle;
display: inline-block;
background-image: url("../svg-res/svg-sprite.svg");
background-repeat: no-repeat;
background-size: 6.4em 6.4em;
}
Answer the question
In order to leave comments, you need to log in
You create a vector object and put a picture there, you also draw at an angle. If Photoshop is older, you draw a vector object in the same way and use a mask to cut out a similar shape from the picture.
UPD: For example:
1. Create a shape, paste the image on top prntscr.com/jcxgrj
2. The shape should be under the layer with the picture, right-click on the picture -> create a clipping mask prntscr.com/jcxh7o
3. Result: prntscr.com /jcxhd4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question