D
D
DanielPo2022-02-01 17:08:14
css
DanielPo, 2022-02-01 17:08:14

How to completely crop an image?

Good afternoon, there is such a photo of the plane

spoiler
61f93dcc1d7d0711840211.png

And I want to add a shadow to it in css, but the shadow appears only in the transparent area around the plane
. How can I crop it so that there would be no this field or are there any other options?
I’ll say right away that I can’t put a shadow in the picture itself, since I need to be able to change it in css

PS. I'm not entirely sure that I put the tags correctly, if you know more correct ones, please change, thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim, 2022-02-01
@DaniilPo

filter: drop-shadow(20px 14px 6px red);
61f9477ff4170963803344.png
The property is relatively modern, and it can also hit performance (on weak devices, with dynamics, when used on a large number of elements, etc.). There are no other options, taking into account all the inputs.
Either the vector analogue of the picture, or on the picture itself.

I
iBird Rose, 2022-02-01
@iiiBird

You can't add a shadow to the picture. options:
1) find the vector source of this picture and export it to svg. and you can already add a shadow to it.
2) draw a shadow on the picture itself in Photoshop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question