A
A
Arthur2015-10-16 16:08:42
css
Arthur, 2015-10-16 16:08:42

How to make a mask layout?

prntscr.com/8rxie1 - there is a shape with a photo overlaid on it. How to implement this in layout?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2015-10-16
@miraage

<div class="result"> <!-- position: relative -->
 <div class="photo"></div> <!-- position: absolute, z-index: 10 -->
 <div class="shape"></div> <!-- position: absolute, z-index: 20 -->
</div>

P
Pavel Torbeev, 2015-10-16
@glizer

Such a complex mask can be implemented by overlaying png, with a transparent place instead of a photo, on top of the photo. The bottom layer is a photo, the top layer is a png with a transparent center.
Hardly a layout with a vector. Svg won't work. css has pretty primitive mask options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question