WordPress

Time Line

/* WRAPPER */
.left-timeline {
position: relative;
overflow: visible !important;
}

/* Track line */
.left-timeline::before {
content: ”;
position: absolute;
left: 0px;
top: 8px;
bottom: 0;
width: 2px;
background-color: rgba(26, 111, 186, 0.15);
z-index: 0;
}

/* Real injected fill line */
.left-timeline .timeline-line-fill {
position: absolute;
left: 0px;
top: 8px;
width: 2px;
height: 0px;
background-color: #1a6fba;
z-index: 1;
pointer-events: none;
}

/* Overflow visible */
.left-timeline,
.left-timeline > .e-con,
.left-timeline > .e-con > .e-con-inner {
overflow: visible !important;
}

/* SHARED bubble style */
.left-timeline .timeline-card-one:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-2:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-3:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-4:not(.elementor-sticky–active)::before {
position: absolute;
left: -65px;
top: 4px;
width: 44px;
height: 44px;
border: 2px solid rgba(26, 111, 186, 0.2);
border-radius: 10px;
background: #ffffff;
color: rgba(26, 111, 186, 0.3);
font-size: 18px;
font-weight: 700;
line-height: 40px;
text-align: center;
z-index: 100;
box-sizing: border-box;
transition: border-color 0.3s ease, color 0.3s ease;
}

/* NUMBERS */
.left-timeline .timeline-card-one:not(.elementor-sticky–active)::before { content: “1”; }
.left-timeline .timeline-card-2:not(.elementor-sticky–active)::before { content: “2”; }
.left-timeline .timeline-card-3:not(.elementor-sticky–active)::before { content: “3”; }
.left-timeline .timeline-card-4:not(.elementor-sticky–active)::before { content: “4”; }

/* ACTIVE number */
.left-timeline .timeline-card-one.timeline-active:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-2.timeline-active:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-3.timeline-active:not(.elementor-sticky–active)::before,
.left-timeline .timeline-card-4.timeline-active:not(.elementor-sticky–active)::before {
border-color: #1a6fba;
color: #1a6fba;
}

/* FIXED: number 1 z-index — sits above fill line */
.left-timeline .timeline-card-one {
z-index: 2 !important;
}

Ready to Grow Your Business?

Whether you need local SEO to get found by nearby customers or a professional website that converts, we’re here to help. Check out our transparent pricing or learn more about our process.

Related Articles

Share the Post:

Related Articles