timeline style : demo 131

CSS

(Fonts required: Libre Franklin.)
                        .main-timeline{ font-family: 'Libre Franklin', sans-serif; }
                        .main-timeline:after{
                            content: '';
                            display: block;
                            clear: both;
                        }
                        .main-timeline .timeline{
                            width: calc(50% + 50px);
                            padding: 0 70px 0 5px;
                            margin: 0 0 30px;
                            float: left;
                        }
                        .main-timeline .timeline-content{
                            color: #777;
                            background: #d66b08;
                            padding: 20px 45px;
                            border-radius: 20px;
                            box-shadow: 0 0 10px rgba(0,0,0,0.1);
                            display: block;
                            position: relative;
                            z-index: 1;
                        }
                        .main-timeline .timeline-content:hover{ text-decoration: none; }
                        .main-timeline .timeline-content:before,
                        .main-timeline .timeline-content:after{
                            content: "";
                            background: #FA9219;
                            position: absolute;
                            top: 15px;
                            left: -5px;
                            right: -70px;
                            bottom: 15px;
                            z-index: -1;
                        }
                        .main-timeline .timeline-content:after{
                            background: #fff;
                            left: 22px;
                            right: 22px;
                            top: 0;
                            bottom: 0;
                        }
                        .main-timeline .timeline-icon{
                            color: #fff;
                            font-size: 55px;
                            text-align: center;
                            transform: translateY(-50%);
                            position: absolute;
                            top: 50%;
                            right: -50px;
                        }
                        .main-timeline .title{
                            color: #FA9219;
                            font-size: 22px;
                            font-weight: 600;
                            text-transform: capitalize;
                            text-align: center;
                            letter-spacing: 0.5px;
                            margin: 0 0 10px;
                        }
                        .main-timeline .description{
                            font-size: 15px;
                            letter-spacing: 1px;
                            line-height: 22px;
                            margin: 0;
                        }
                        .main-timeline .timeline:nth-child(even){
                            float: right;
                            padding: 0 5px 0 70px;
                            margin: 0 0 30px;
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-content:before{
                            left: -70px;
                            right: -5px;
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-icon{
                            right: auto;
                            left: -50px;
                        }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-content{ background: #842a68; }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-content:before{ background: #D34F9B; }
                        .main-timeline .timeline:nth-child(4n+2) .title{ color: #D34F9B; }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-content{ background: #04808e; }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-content:before{ background: #02ADCB; }
                        .main-timeline .timeline:nth-child(4n+3) .title{ color: #02ADCB; }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-content{ background: #1c7c24; }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-content:before{ background: #37B54A; }
                        .main-timeline .timeline:nth-child(4n+4) .title{ color: #37B54A; }
                        @media screen and (max-width:767px){
                            .main-timeline .timeline{ width: 100%; }
                        }
                        @media screen and (max-width:576px){
                            .main-timeline .timeline,
                            .main-timeline .timeline:nth-child(even){
                                text-align: center;
                                padding: 70px 0 5px 0;
                                margin: 0 0 30px;
                            }
                            .main-timeline .timeline-content{ padding: 40px; }
                            .main-timeline .timeline-content:before,
                            .main-timeline .timeline:nth-child(even) .timeline-content:before{
                                left: 20px;
                                right: 20px;
                                top: -70px;
                                bottom: -5px;
                            }
                            .main-timeline .timeline-content:after,
                            .main-timeline .timeline:nth-child(even) .timeline-content:after{
                                left: 0;
                                right: 0;
                                top: 20px;
                                bottom: 20px;
                            }
                            .main-timeline .timeline-icon,
                            .main-timeline .timeline:nth-child(even) .timeline-icon{
                                padding: 10px 0;
                                transform: translateX(-50%) translateY(0);
                                top: -70px;
                                left: 50%;
                                right: auto;
                            }
                            .main-timeline .title{ font-size: 20px; }
                        }
                    
License Terms