timeline style : demo 51

CSS

(Fonts required: Niramit.)
                        :root{
                            --white: #fff;
                            --black: #000;
                            --color_1: linear-gradient(to right,#c60707,#ff0000,#ff0000,#ff0000,#c60707);
                            --color_2: linear-gradient(to right,#6a9b0f,#a4e827,#a4e827,#a4e827,#6a9b0f);
                            --color_3: linear-gradient(to right,#c42363,#f04f90,#f04f90,#f04f90,#c42363);
                            --color_4: linear-gradient(to right,#cc4c1a,#f26f37,#f26f37,#f26f37,#cc4c1a);
                        }
                        .main-timeline{ font-family: 'Niramit', sans-serif; }
                        .main-timeline .timeline{
                            color: var(--black);
                            min-height: 130px;
                            padding: 10px 0;
                            margin: 0 0 20px;
                            position: relative;
                        }
                        .main-timeline .timeline:before{
                            content: '';
                            background: var(--color_1);
                            height: 80%;
                            width: 30%;
                            transform: translateX(-50%) translateY(-50%);
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            z-index: 0;
                            -webkit-clip-path: polygon(0 10%, 75% 10%, 75% 0%, 100% 50%, 75% 100%, 75% 90%, 0 90%);
                            clip-path: polygon(0 10%, 75% 10%, 75% 0%, 100% 50%, 75% 100%, 75% 90%, 0 90%);
                        }
                        .main-timeline .timeline-content{ display: block; }
                        .main-timeline .timeline-content:after{
                            content: '';
                            display: block;
                            clear: both;
                        }
                        .main-timeline .timeline-content:hover{ text-decoration: none; }
                        .main-timeline .title{
                            color: var(--white);
                            font-size: 20px;
                            font-weight: 600;
                            text-align: center;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            width: 24%;
                            margin: 0;
                            transform: translateX(-50%) translateY(-50%);
                            position: absolute;
                            left: 50%;
                            top: 50%;
                        }
                        .main-timeline .inner-content{
                            color: var(--black);
                            background-color: var(--white);
                            font-size: 15px;
                            letter-spacing: 1px;
                            text-align: left;
                            width: 35%;
                            padding: 14px 40px 14px 10px;
                            position: relative;
                            box-shadow: 15px 0 10px -12px var(--black);
                        }
                        .main-timeline .timeline-icon{
                            color: #444;
                            font-size: 80px;
                            text-align: center;
                            height: 120px;
                            width: 120px;
                            line-height: 115px;
                            border-radius: 50%;
                            border: 3px solid red;
                            transform: translateY(-50%);
                            position: absolute;
                            top: 50%;
                            right: 100px;
                        }
                        .main-timeline .timeline:nth-child(even):before{
                            -webkit-clip-path: polygon(25% 0, 25% 10%, 100% 10%, 100% 90%, 25% 90%, 25% 100%, 0 50%);
                            clip-path: polygon(25% 0, 25% 10%, 100% 10%, 100% 90%, 25% 90%, 25% 100%, 0 50%);
                        }
                        .main-timeline .timeline:nth-child(even) .inner-content{
                            padding: 14px 10px 14px 40px;
                            text-align: right;
                            float: right;
                            box-shadow: -15px 0 10px -12px var(--black);
                        }
                        .main-timeline .timeline:nth-child(even) .timeline-icon{
                            right: auto;
                            left: 100px;
                        }
                        .main-timeline .timeline:nth-child(4n+2):before{ background: var(--color_2); }
                        .main-timeline .timeline:nth-child(4n+2) .timeline-icon{ border-color:#6a9b0f; }
                        .main-timeline .timeline:nth-child(4n+3):before{ background: var(--color_3); }
                        .main-timeline .timeline:nth-child(4n+3) .timeline-icon{ border-color:#c42363; }
                        .main-timeline .timeline:nth-child(4n+4):before{ background: var(--color_4); }
                        .main-timeline .timeline:nth-child(4n+4) .timeline-icon{ border-color:#cc4c1a; }
                        @media only screen and (max-width:990px){
                            .main-timeline .title{ font-size: 18px; }
                            .main-timeline .timeline-icon{ right: 0; }
                            .main-timeline .timeline:nth-child(even) .timeline-icon{ left: 0; }
                        }
                        @media only screen and (max-width:767px){
                            .main-timeline .timeline{ margin-bottom: 20px; }
                            .main-timeline .timeline:before{
                                left: -5px;
                                top: 15px;
                                transform-origin: center center;
                                transform: translateX(0) translateY(0) rotate(90deg);
                                z-index: 0;
                                width: 40px;
                                height: 20px;
                            }
                            .main-timeline .timeline:nth-child(even):before{
                                -webkit-clip-path: polygon(0 10%, 75% 10%, 75% 0%, 100% 50%, 75% 100%, 75% 90%, 0 90%);
                                clip-path: polygon(0 10%, 75% 10%, 75% 0%, 100% 50%, 75% 100%, 75% 90%, 0 90%);
                            }
                            .main-timeline .timeline:nth-child(even) .inner-content,
                            .main-timeline .inner-content{
                                background: transparent;
                                text-align: left;
                                width: 100%;
                                padding: 5px;
                                box-shadow: 0 0 0 transparent;
                            }
                            .main-timeline .title{
                                position: relative;
                                color: red;
                                text-align: left;
                                width: 50%;
                                margin-bottom: 20px;
                                transform:translateX(0) translateY(0);
                                left: 40px;
                                top: 0;
                                z-index: 1;
                            }
                            .main-timeline .timeline-icon{
                                font-size: 35px;
                                line-height: 50px;
                                height: 55px;
                                width: 55px;
                                top: -5px;
                                transform: translateY(0);
                            }
                            .main-timeline .timeline:nth-child(even) .timeline-icon{
                                left: auto;
                                right: 0;
                            }
                            .main-timeline .timeline:nth-child(4n+2) .title{ color:#6a9b0f; }
                            .main-timeline .timeline:nth-child(4n+3) .title{ color:#c42363; }
                            .main-timeline .timeline:nth-child(4n+4) .title{ color:#cc4c1a; }
                        }
                    
License Terms