timeline style : demo 38

CSS

                        .main-timeline{
                            overflow: hidden;
                            position: relative;
                        }
                        .main-timeline:before{
                            content: "";
                            width: 3px;
                            height: 95%;
                            background: #bcbcbc;
                            position: absolute;
                            top: 5px;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                        .main-timeline .timeline{
                            width: 50%;
                            float: left;
                            padding: 10px 60px 10px 0;
                            position: relative;
                        }
                        .main-timeline .timeline:before{
                            content: "";
                            width: 20px;
                            height: 20px;
                            background: #1bad1e;
                            border: 2px solid #404256;
                            position: absolute;
                            top: 50%;
                            right: -10px;
                            transform: translateY(-50%) rotate(45deg);
                        }
                        .main-timeline .timeline:first-child:after,
                        .main-timeline .timeline:last-child:after{
                            content: "";
                            width: 14px;
                            height: 14px;
                            background: #bcbcbc;
                            transform: rotate(45deg);
                            position: absolute;
                            top: 2px;
                            right: -7.5px;
                        }
                        .main-timeline .timeline:last-child:after{
                            top: auto;
                            bottom: -26px;
                        }
                        .main-timeline .timeline:last-child:nth-child(even):after{
                            right: auto;
                            left: -7px;
                        }
                        .main-timeline .timeline-content{
                            display: block;
                            padding: 0 0 0 140px;
                            position: relative;
                        }
                        .main-timeline .timeline-content:hover{ text-decoration: none; }
                        .main-timeline .timeline-icon{
                            width: 70px;
                            height: 70px;
                            line-height: 70px;
                            font-size: 30px;
                            color: #fff;
                            text-align: center;
                            position: absolute;
                            top: 50%;
                            left: 25px;
                            z-index: 1;
                            transform: translateY(-50%);
                        }
                        .main-timeline .timeline-icon:after{
                            content: "";
                            width: 100%;
                            height: 100%;
                            background: #1bad1e;
                            position: absolute;
                            top: 0;
                            left: 0;
                            z-index: -1;
                            transform: rotate(45deg);
                        }
                        .main-timeline .description{
                            font-size: 14px;
                            color: #fff;
                            padding: 15px 20px;
                            margin: 0 0 5px 0;
                            background: #1bad1e;
                            position: relative;
                        }
                        .main-timeline .description:before{
                            content: "";
                            width: 15px;
                            height: 15px;
                            background: #1bad1e;
                            position: absolute;
                            top: 50%;
                            left: -8px;
                            transform: translateY(-50%) rotate(45deg);
                        }
                        .main-timeline .timeline:nth-child(2n){ padding: 10px 0 10px 60px; }
                        .main-timeline .timeline:nth-child(2n):before{
                            right: auto;
                            left: -10px;
                        }
                        .main-timeline .timeline:nth-child(2n) .timeline-content{ padding: 0 140px 0 0; }
                        .main-timeline .timeline:nth-child(2n) .timeline-icon{
                            left: auto;
                            right: 25px;
                        }
                        .main-timeline  .timeline:nth-child(2n) .description:before{
                            left: auto;
                            right: -8px;
                        }
                        .main-timeline .timeline:nth-child(2){ margin-top: 100px; }
                        .main-timeline .timeline:nth-child(odd){ margin: -100px 0 30px 0; }
                        .main-timeline .timeline:nth-child(even){ margin-bottom: 80px; }
                        .main-timeline .timeline:first-child,
                        .main-timeline .timeline:last-child:nth-child(even){ margin: 0 0 30px 0; }
                        .main-timeline .timeline:nth-child(2n):before,
                        .main-timeline .timeline:nth-child(2n) .timeline-icon:after,
                        .main-timeline  .timeline:nth-child(2n) .description,
                        .main-timeline  .timeline:nth-child(2n) .description:before{ background: #f45464; }
                        .main-timeline .timeline:nth-child(3n):before,
                        .main-timeline .timeline:nth-child(3n) .timeline-icon:after,
                        .main-timeline  .timeline:nth-child(3n) .description,
                        .main-timeline  .timeline:nth-child(3n) .description:before{ background: #15b9c8; }
                        .main-timeline .timeline:nth-child(4n):before,
                        .main-timeline .timeline:nth-child(4n) .timeline-icon:after,
                        .main-timeline  .timeline:nth-child(4n) .description,
                        .main-timeline  .timeline:nth-child(4n) .description:before{ background: #ed9e03; }
                        @media only screen and (max-width: 767px){
                            .main-timeline:before{
                                height: 100%;
                                top: 0;
                                left: 13px;
                                transform: translateX(0);
                            }
                            .main-timeline .timeline:before,
                            .main-timeline .timeline:nth-child(2n):before{ left: 4px; }
                            .main-timeline .timeline,
                            .main-timeline .timeline:nth-child(even),
                            .main-timeline .timeline:nth-child(odd){
                                width: 100%;
                                float: none;
                                padding: 0 0 0 55px;
                                margin: 15px 0 50px 0;
                            }
                            .main-timeline .timeline:first-child:after,
                            .main-timeline .timeline:last-child:after{
                                top: -13px;
                                right: auto;
                                left: 7px;
                            }
                            .main-timeline .timeline:last-child:after{
                                top: auto;
                                bottom: -28px;
                            }
                            .main-timeline .timeline:last-child:nth-child(even):after{
                                right: auto;
                                left: 7px;
                            }
                            .main-timeline .timeline-icon,
                            .main-timeline .timeline:nth-child(2n) .timeline-icon{
                                left: 0;
                                right: auto;
                            }
                            .main-timeline .timeline-content,
                            .main-timeline .timeline:nth-child(2n) .timeline-content{ padding: 0 0 0 100px; }
                            .main-timeline  .timeline:nth-child(2n) .description:before{
                                left: -8px;
                                right: auto;
                            }
                        }
                        @media only screen and (max-width: 480px){
                            .main-timeline .timeline,
                            .main-timeline .timeline:nth-child(even),
                            .main-timeline .timeline:nth-child(odd){ padding: 0 0 0 45px; }
                            .main-timeline .timeline-content,
                            .main-timeline .timeline:nth-child(2n) .timeline-content{ padding: 0 0 0 80px; }
                            .main-timeline .timeline-icon,
                            .main-timeline .timeline:nth-child(2n) .timeline-icon{
                                width: 50px;
                                height: 50px;
                                line-height: 50px;
                                font-size: 25px;
                            }
                        }
                    
License Terms