All posts by simplycode

Timeline Bootstrap CSS3

HTML

<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="main-timeline">
                <div class="col-md-2 col-sm-4 timeline">
                    <div class="timeline-content">
                        <div class="year">2011-2012</div>
                        <div class="post">Web Desginer</div>
                        <p class="description">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, tenetur.
                        </p>
                    </div>
                    <div class="timeline-icon">
                        <i class="fa fa-globe"></i>
                    </div>
                </div>
 
                <div class="col-md-2 col-sm-4 timeline">
                    <div class="timeline-icon">
                        <i class="fa fa-rocket"></i>
                    </div>
                    <div class="timeline-content">
                        <p class="description">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, tenetur.
                        </p>
                        <div class="post">Web Developer</div>
                        <div class="year">2012-2013</div>
                    </div>
                </div>
 
                <div class="col-md-2 col-sm-4 timeline">
                    <div class="timeline-content">
                        <div class="year">2013-2014</div>
                        <div class="post">Web Desginer</div>
                        <p class="description">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, tenetur.
                        </p>
                    </div>
                    <div class="timeline-icon">
                        <i class="fa fa-briefcase"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

CSS


.main-timeline .timeline{
    text-align: center;
    padding: 0;
}
.main-timeline .timeline-icon{
    padding: 45px 0 35px;
    background: #58b25e;
    border-radius: 0 0 50% 50%;
}
.main-timeline .timeline-icon i{
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #fff;
    font-size: 45px;
}
.main-timeline .timeline-content{
    padding: 0 10px 20px;
}
.main-timeline .year{
    font-size: 16px;
    font-weight: bold;
    color: #58b25e;
}
.main-timeline .post{
    font-size: 18px;
    font-weight: bold;
    color: #000;
}
.main-timeline .description{
    font-size: 14px;
    color: #555;
}
.main-timeline .timeline:nth-child(2n) .timeline-icon{
    padding: 35px 0 45px;
    border-radius: 50% 50% 0 0;
}
.main-timeline .timeline:nth-child(2n) .timeline-content{
    padding: 20px 10px 0;
}
.main-timeline .timeline:nth-child(2n) .timeline-icon{ background: #9f84c4; }
.main-timeline .timeline:nth-child(3n) .timeline-icon{ background: #f35958; }
.main-timeline .timeline:nth-child(4n) .timeline-icon{ background: #e67e49; }
.main-timeline .timeline:nth-child(2n) .year{ color: #9f84c4; }
.main-timeline .timeline:nth-child(3n) .year{ color: #f35958; }
.main-timeline .timeline:nth-child(4n) .year{ color: #e67e49; }
@media only screen and (max-width: 990px){
    .main-timeline .timeline{
        margin-bottom: 20px;
    }

Make a simple cloud in CSS3

Its a Simple Logic in CSS3, Just you can copy paste.

here you can seen HTML and CSS.

HTML


<div id = "cloud"><span class='shadow'></span></div>

CSS


body {
background: #ccc;
}
#cloud {
width: 350px; height: 120px;

background: #f2f9fe;
background: linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
background: -webkit-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
background: -moz-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
background: -ms-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
background: -o-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);

border-radius: 100px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;

position: relative;
margin: 120px auto 20px;
}

#cloud:after, #cloud:before {
content: '';
position: absolute;
background: #f2f9fe;
z-index: -1
}

#cloud:after {
width: 100px; height: 100px;
top: -50px; left: 50px;

border-radius: 100px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
}

#cloud:before {
width: 180px; height: 180px;
top: -90px; right: 50px;

border-radius: 200px;
-webkit-border-radius: 200px;
-moz-border-radius: 200px;
}

.shadow {
width: 350px;
position: absolute; bottom: -10px;
background: #000;
z-index: -1;

box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);

border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}