timeline style : demo 104

CSS

(Fonts required: Work Sans.)
                        .main-timeline{
                            font-family: 'Work Sans', sans-serif;
                            position: relative;
                        }
                        .main-timeline:after{
                            content: '';
                            display: block;
                            clear: both;
                        }
                        .main-timeline:before{
                            content: '';
                            background-color: #fff;
                            height: 100%;
                            width: 1px;
                            transform: translateX(-50%);
                            position: absolute;
                            left: 50%;
                            top: 0;
                        }
                        .main-timeline .timeline{
                            width: 50%;
                            padding: 25px 25px 0 20px;
                            float: right;
                        }
                        .main-timeline .timeline-content{
                            color: #fff;
                            background: linear-gradient(to right,#ED3768,#F45480,#ED3768);
                            text-align: center;
                            padding: 20px 30px 20px 75px;
                            border: 5px solid #fff;
                            border-radius: 10px;
                            box-shadow: 0 0 10px rgba(0,0,0,0.5);
                            display: block;
                            position: relative;
                            z-index: 1;
                        }
                        .main-timeline .timeline-content:hover{ text-decoration: none; }
                        .main-timeline .timeline-icon{
                            color: #ED3768;
                            background-color: #ED3768;
                            font-size: 30px;
                            line-height: 58px;
                            height: 60px;
                            width: 60px;
                            border: 2px solid #fff;
                            border-radius: 50%;
                            position: absolute;
                            right: -30px;
                            top: -30px;
                            z-index: 1;
                        }
                        .main-timeline .timeline-icon:before{
                            content: '';
                            background-color: #fff;
                            border-radius: 50%;
                            position: absolute;
                            left: 7px;
                            top: 7px;
                            right: 7px;
                            bottom: 7px;
                            z-index: -1;
                        }
                        .main-timeline .timeline-year{
                            color: #ED3768;
                            background-color: #fff;
                            font-size: 25px;
                            font-weight: 700;
                            padding: 10px 13px;
                            border-radius: 0 20px 0 0;
                            box-shadow: 0 0 10px rgba(0,0,0,0.5);
                            position: absolute;
                            left: -25px;
                            top: 20px;
                        }
                        .main-timeline .timeline-year:after{
                            content: '';
                            background: linear-gradient(to top right, transparent 50%, #ED3768 50%);
                            height: 15px;
                            width: 20px;
                            position: absolute;
                            top: 100%;
                            left: 0;
                        }
                        .main-timeline .title{
                            font-size: 20px;
                            font-weight: 600;
                            text-transform: uppercase;
                            letter-spacing: 1px;
                            margin: 0 0 5px;
                        }
                        .main-timeline .description{
                            font-size: 15px;
                            font-weight: 300;
                            letter-spacing: 1px;
                            margin: 0 0 0 10px;
                        }
                        .main-timeline .timeline:nth-child(even){
                            padding: 25px 20px 0 25px;
                            margin: 0 10px 0 0;
                            float: left;
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 20px 75px 20px 30px; }
                        .main-timeline .timeline:nth-child(even) .timeline-icon{
                            left: -30px;
                            right: auto;
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-year{
                            border-radius: 20px 0 0 0;
                            left: auto;
                            right: -25px;
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-year:after{
                            transform: rotateY(180deg);
                            left: auto;
                            right: 0;
                        }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-content{
                            background: linear-gradient(to right,#F47526,#FCA138,#F47526);
                        }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-icon{
                            color: #F47526;
                            background-color: #F47526;
                        }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-year{ color: #F47526; }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-year:after{
                            background: linear-gradient(to top right, transparent 50%,#F47526 50%);
                        }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-content{
                            background: linear-gradient(to right,#2b88f2,#129BF2,#2b88f2);
                        }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-icon{
                            color: #2b88f2;
                            background-color: #2b88f2;
                        }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-year{ color: #2b88f2; }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-year:after{
                            background: linear-gradient(to top right, transparent 50%,#2b88f2 50%);
                        }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-content{
                            background: linear-gradient(to right,#6d60c1,#8f8ffc,#6d60c1);
                        }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-icon{
                            color: #6d60c1;
                            background-color: #6d60c1;
                        }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-year{ color: #6d60c1; }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-year:after{
                            background: linear-gradient(to top right, transparent 50%,#6d60c1 50%);
                        }
                        @media screen and (max-width:767px){
                            .main-timeline:before{
                                left: 0;
                                transform: translateX(0);
                            }
                            .main-timeline .timeline,
                            .main-timeline .timeline:nth-child(even){
                            	width: 100%;
                                padding: 25px 25px 0 20px;
                        		margin: 0 0 20px;
                            }
                            .main-timeline .timeline-content,
                            .main-timeline .timeline:nth-child(even) .timeline-content{
                                padding: 40px 20px 20px 20px;
                            }
                            .main-timeline .timeline:nth-child(even) .timeline-icon{
                                left: auto;
                                right: -30px;
                            }
                            .main-timeline .timeline-year,
                            .main-timeline .timeline:nth-child(even) .timeline-year{
                                border-radius: 0 20px 0 0;
                                right: auto;
                                left: -25px;
                                top: -30px;
                            }
                            .main-timeline .timeline:nth-child(even) .timeline-year:after{
                                transform: rotateY(0);
                                left: 0;
                                right: auto;
                            }
                        }
                        @media screen and (max-width:576px){
                            .main-timeline .title{ font-size: 18px; }
                        }
                    
License Terms