Jump to content
  • 0

2 прямоугольные трапеции, обращенные друг к другу


VasyOK{!}
 Share

Question

Поздравляю с Рождеством мастеров верстки!

Подскажите: как сделать 2 прямоугольные  трапеции, обращенные друг к другу?

Скрин:e88555b6beb5.jpg

Пока что не получилось, так как на скрине. Уже и с transform мучался и с clip-path. Может что-то не понимаю.

https://jsfiddle.net/PlayboyZP/L24u0mrw/

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Надо поиграться со значениями

http://jsfiddle.net/h1mxetsn/

<div class="stage">
  <div class="trapezoid"></div>
</div>
<div class="stage2">
  <div class="trapezoid2"></div>
</div>
.stage {
  perspective: 600px;
}

.trapezoid {
  width: 300px;
  height: 300px;
  background: black;
  transform: rotateX(-20deg) skew(-20deg) translateZ(-10px);
  border-radius: 15px;
  background: white;
  border: 1px solid;
}

.stage2 {
  perspective: 600px;
  position: absolute;
  left: 350px;
  top: 0;
}

.trapezoid2 {
  width: 300px;
  height: 300px;
  background: black;
  transform: rotateX(-46deg) skew(-18deg) translateZ(20px);
  border-radius: 15px;
  background: white;
  border: 1px solid;
}

 

Edited by DivMan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy