sisko
sisko

Reputation: 9910

CSS3 curving effect

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?

Upvotes: 3

Views: 336

Answers (1)

Joonas
Joonas

Reputation: 7305

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; }

Upvotes: 1

Related Questions