S
S
sergei1792021-09-04 23:59:16
Layout
sergei179, 2021-09-04 23:59:16

How to make a shadow for a triangle in CSS?

How to make similar triangles with shadow?
6133dde3acc2e835152079.png

I can not figure out the shadow for the shapes.
The triangle must be sharp.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A person from Kazakhstan, 2021-09-05
@LenovoId

Cross-browser method, that is, SVG under the hood feDropShadow plus path
Actually, we draw triangles and duplicate them, we shift two triangles along the same trajectories, we filter the first, that is, not visible triangle and assign it to the lower first triangle and get:

T
tundramani, 2021-09-05
@tundramani

filter:drop-shadow(2px 3px 5px black);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question