W
W
Well here again 252018-02-04 12:29:00
css
Well here again 25, 2018-02-04 12:29:00

How to make such skewX?

There are two blocks identical with absolute positioning inside a common container.
The second block is created as a clone of the first.
I need to make a bevel so that it looks like in the picture on the left
. I'm trying to set up transform-origin: left center;
But it turns out only as in the picture on the right.
That is, you need to create a clone, place it behind the original and bevel it so that they are aligned with the bottom side.
5a76d1e960ea0796809348.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2018-02-04
@TT55EE

transform-origin: left bottom;

S
Stalker_RED, 2018-02-04
@Stalker_RED

transform-origin: 0 100%;
https://jsfiddle.net/Ls31903e/
the first value can be any valid value at all, it doesn't seem to affect anything at all, it just takes up space. The second value must be 100% or bottom;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question