F
F
freeman02042016-12-16 22:37:32
css
freeman0204, 2016-12-16 22:37:32

Is it possible to draw a block with beveled edges through the canvas and place html there?

You need to draw similar bevels, these blocks have parallax, all the ways that I tried are not suitable for oblique corners like here. Hope only for canvas. Is it possible to draw a block with beveled edges through the canvas and place html there?
photo 1
62304ff2c106475082d803a8400bcd69.jpg
photo 2
726550d315ff4b5b82848345d51c64da.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-12-17
@freeman0204

There are basically two ways to do this today:
- clip-path
- transform
clip-path is the normal way, not a trick. But with cross-browser compatibility, everything is bad with him.
transform is more of a trick. Outer block skewY(5deg), nested skewY(-5deg).
Here is an example codepen.io/AMar4enko/pen/LbMmWe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question