خرید بک لینک

Vote count: 0

Trying to achieve something as the image suggests, and not sure what would be the best approach because I want to play with the divs heights when hovering.

enter image description here

html

css

.container{
      width: 100%;
      height: 100vh;
      overflow: hidden;
     //  transform: skewY(-45deg);
     //  transform: rotate(-45deg);
}
.top, .bottom {
    width: 100%;
    height: calc(50% - 20px);
}
.top {
    background: black;
}
.bottom {
    background: grey;
}
.center {
    background: green;
    height: 40px;
    width: 100%;
}

In the jsfiddle you will find both rotate and skewY commented.

asked 15 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 6 ارديبهشت 1396 ساعت: 12:03

صفحه بندی