Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3 curving effect

Tags:

css

curve

I wonder if anyone can tell me if the curving effect shown in the image below is possible with CSS3.

enter image description here

If it is, how can I achieve it?

like image 233
sisko Avatar asked Dec 07 '25 20:12

sisko


1 Answers

Something like this could be done:

http://jsfiddle.net/lollero/Bfwpz/

HTML:

<div id="boxWrap">
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <div class="box5"></div>
</div>

CSS:

#boxWrap { float: left;}

#boxWrap div {
    background: #e1e1e1;
    border: 1px solid #999999;
    width: 40px;
    height: 50px;
    float: left;
    margin: 10px;
    position: relative;
}

.box1 { top: 20px; }
.box2 { top: -20px; }
.box3 { top: -50px; }
.box4 { top: -20px; }
.box5 { top: 20px; }
like image 181
Joonas Avatar answered Dec 09 '25 13:12

Joonas