Html
Css
Javascript
Timeline
Vertical
Etapes
Template
Composant timeline verticale en HTML/CSS/JS pur, style moderne sans framework, animations CSS et Font Awesome icons.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="copyright" content="AngularForAll" />
<meta name="author" content="AngularForAll" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Cache-Control" content="public, max-age=604800" />
<title>Snippets Timeline HTML CSS 2026 05050210 | AngularForAll</title>
<!-- Font Awesome 6 (gratuit) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
/* ---------- RESET & GLOBAL ---------- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: #f5f7fc;
background: linear-gradient(145deg, #f5f7fc 0%, #eef2f7 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 1rem;
}
/* ---------- CONTENEUR PRINCIPAL ---------- */
.timeline-container {
max-width: 1000px;
width: 100%;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border-radius: 48px;
padding: 3rem 2rem 2.5rem 2rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.5);
transition: all 0.3s ease;
}
/* ---------- EN-TÊTE ---------- */
.header {
text-align: center;
margin-bottom: 3rem;
}
.header h1 {
font-size: 2.5rem;
font-weight: 700;
color: #1e293b;
letter-spacing: -0.02em;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
flex-wrap: wrap;
}
.header h1 i {
background: linear-gradient(135deg, #6366f1, #a855f7);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
.header p {
color: #64748b;
font-size: 1.1rem;
font-weight: 400;
margin-top: 0.3rem;
}
.header .badge-container {
margin-top: 0.8rem;
display: flex;
justify-content: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.header .badge {
background: rgba(255, 255, 255, 0.7);
padding: 0.3rem 1.2rem;
border-radius: 40px;
font-size: 0.75rem;
font-weight: 600;
color: #4b5563;
border: 1px solid rgba(255, 255, 255, 0.8);
backdrop-filter: blur(4px);
letter-spacing: 0.02em;
}
/* ---------- TIMELINE (structure) ---------- */
.timeline {
position: relative;
padding: 1.5rem 0 0.5rem 0;
}
/* Ligne verticale centrale */
.timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(180deg, #6366f1, #a855f7);
transform: translateX(-50%);
border-radius: 8px;
box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
/* ----- ÉLÉMENT DE TIMELINE ----- */
.timeline-item {
position: relative;
margin-bottom: 3rem;
display: flex;
align-items: flex-start;
justify-content: space-between;
width: 100%;
}
/* ----- CARTE (contenu) ----- */
.timeline-card {
width: 42%;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 24px;
padding: 1.75rem 2rem 1.75rem 2.2rem;
box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
border: 1px solid rgba(255, 255, 255, 0.6);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
}
.timeline-card:hover {
transform: translateY(-6px) scale(1.01);
box-shadow: 0 20px 40px -14px rgba(99, 102, 241, 0.12);
background: rgba(255, 255, 255, 0.9);
border-color: rgba(99, 102, 241, 0.15);
}
/* ----- MARQUEUR (point sur la ligne) ----- */
.timeline-dot {
position: absolute;
left: 50%;
top: 2rem;
transform: translateX(-50%);
width: 20px;
height: 20px;
background: #ffffff;
border: 4px solid #6366f1;
border-radius: 50%;
box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
z-index: 2;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.timeline-dot i {
font-size: 0.6rem;
color: #6366f1;
transition: color 0.3s;
}
.timeline-item:hover .timeline-dot {
border-color: #a855f7;
box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.12);
transform: translateX(-50%) scale(1.1);
}
.timeline-item:hover .timeline-dot i {
color: #a855f7;
}
/* ----- CONTENU DE LA CARTE ----- */
.timeline-date {
display: inline-block;
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.03em;
background: rgba(255, 255, 255, 0.6);
padding: 0.2rem 1.2rem;
border-radius: 40px;
border: 1px solid rgba(255, 255, 255, 0.6);
color: #475569;
margin-bottom: 0.6rem;
backdrop-filter: blur(4px);
}
.timeline-title {
font-weight: 700;
font-size: 1.25rem;
color: #0f172a;
margin-bottom: 0.4rem;
display: flex;
align-items: center;
gap: 0.6rem;
}
.timeline-title i {
font-size: 1.3rem;
background: linear-gradient(135deg, #6366f1, #a855f7);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
.timeline-desc {
color: #475569;
font-weight: 400;
font-size: 0.95rem;
line-height: 1.6;
margin-bottom: 0.6rem;
}
.timeline-tag {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: rgba(99, 102, 241, 0.06);
color: #6366f1;
font-size: 0.7rem;
font-weight: 600;
padding: 0.25rem 1.2rem;
border-radius: 40px;
border: 1px solid rgba(99, 102, 241, 0.08);
text-transform: uppercase;
letter-spacing: 0.02em;
}
.timeline-tag i {
font-size: 0.65rem;
}
/* ----- ALTERNANCE (DESKTOP) ----- */
/* élément impair : carte à gauche, dot au centre */
.timeline-item:nth-child(odd) {
flex-direction: row;
}
.timeline-item:nth-child(odd) .timeline-card {
margin-right: auto;
text-align: right;
padding: 1.75rem 2.2rem 1.75rem 2rem;
border-radius: 24px 24px 24px 8px;
}
.timeline-item:nth-child(odd) .timeline-title {
justify-content: flex-end;
}
.timeline-item:nth-child(odd) .timeline-tag {
justify-content: flex-end;
}
/* élément pair : carte à droite */
.timeline-item:nth-child(even) {
flex-direction: row-reverse;
}
.timeline-item:nth-child(even) .timeline-card {
margin-left: auto;
text-align: left;
padding: 1.75rem 2rem 1.75rem 2.2rem;
border-radius: 24px 24px 8px 24px;
}
.timeline-item:nth-child(even) .timeline-title {
justify-content: flex-start;
}
.timeline-item:nth-child(even) .timeline-tag {
justify-content: flex-start;
}
/* ----- MOBILE (ligne à gauche) ----- */
@media (max-width: 767px) {
.timeline-container {
padding: 2rem 1rem;
border-radius: 32px;
}
.header h1 {
font-size: 2rem;
}
.timeline::before {
left: 1.8rem;
transform: none;
}
.timeline-item {
flex-direction: column !important;
align-items: flex-start;
margin-bottom: 2.5rem;
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
flex-direction: column !important;
}
.timeline-dot {
left: 1.8rem;
top: 0.8rem;
transform: translateX(-50%);
width: 18px;
height: 18px;
}
.timeline-item:hover .timeline-dot {
transform: translateX(-50%) scale(1.1);
}
.timeline-card {
width: calc(100% - 4.2rem);
margin-left: 4.2rem !important;
margin-right: 0 !important;
text-align: left !important;
padding: 1.5rem 1.5rem 1.5rem 1.8rem !important;
border-radius: 20px !important;
}
.timeline-item:nth-child(odd) .timeline-card,
.timeline-item:nth-child(even) .timeline-card {
text-align: left !important;
padding: 1.5rem 1.5rem 1.5rem 1.8rem !important;
border-radius: 20px !important;
}
.timeline-title {
justify-content: flex-start !important;
}
.timeline-tag {
justify-content: flex-start !important;
}
.timeline-date {
font-size: 0.75rem;
padding: 0.15rem 1rem;
}
.timeline-title {
font-size: 1.1rem;
}
.timeline-desc {
font-size: 0.9rem;
}
}
/* ---------- PIED DE PAGE ---------- */
.footer-credit {
margin-top: 2.5rem;
text-align: center;
color: #94a3b8;
font-size: 0.85rem;
font-weight: 400;
}
.footer-credit span {
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(4px);
padding: 0.3rem 1.5rem;
border-radius: 40px;
border: 1px solid rgba(255, 255, 255, 0.6);
display: inline-block;
}
.footer-credit a {
color: #6366f1;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.footer-credit a:hover {
color: #a855f7;
}
/* ---------- DÉTAILS ---------- */
.highlight-purple {
color: #6366f1;
}
.icon-circle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background: rgba(99, 102, 241, 0.06);
border-radius: 12px;
border: 1px solid rgba(99, 102, 241, 0.06);
}
</style>
</head>
<body>
<div class="timeline-container">
<!-- EN-TÊTE -->
<div class="header">
<h1>
<i class="fas fa-timeline"></i>
<span>Chronologie moderne</span>
</h1>
<p>Parcours inspiré du style <strong>#08</strong> — épuré & interactif</p>
<div class="badge-container">
<span class="badge"><i class="far fa-circle-check me-1"></i> Responsive</span>
<span class="badge"><i class="far fa-gem me-1"></i> Glassmorphism</span>
<span class="badge"><i class="far fa-star me-1"></i> CSS only</span>
</div>
</div>
<!-- TIMELINE -->
<div class="timeline">
<!-- ÉLÉMENT 1 -->
<div class="timeline-item">
<div class="timeline-card">
<span class="timeline-date"><i class="far fa-calendar-alt me-1"></i> 2019 — 2021</span>
<h4 class="timeline-title">
<span class="icon-circle"><i class="fas fa-lightbulb"></i></span>
<span>Concept & fondations</span>
</h4>
<p class="timeline-desc">
Exploration des besoins et premiers prototypes.<br>
<span class="text-muted" style="color:#94a3b8; font-size:0.9rem;">Validation terrain & itérations agiles.</span>
</p>
<span class="timeline-tag"><i class="fas fa-compass me-1"></i> Exploration</span>
</div>
<div class="timeline-dot">
<i class="fas fa-star"></i>
</div>
</div>
<!-- ÉLÉMENT 2 -->
<div class="timeline-item">
<div class="timeline-card">
<span class="timeline-date"><i class="far fa-calendar-alt me-1"></i> 2022 — 2023</span>
<h4 class="timeline-title">
<span class="icon-circle"><i class="fas fa-rocket"></i></span>
<span>Croissance & scaling</span>
</h4>
<p class="timeline-desc">
Lancement officiel et premières adoptions.<br>
<span class="text-muted" style="color:#94a3b8; font-size:0.9rem;">+10k utilisateurs, équipe de 15 personnes.</span>
</p>
<span class="timeline-tag"><i class="fas fa-chart-line me-1"></i> Scale</span>
</div>
<div class="timeline-dot">
<i class="fas fa-arrow-up"></i>
</div>
</div>
<!-- ÉLÉMENT 3 -->
<div class="timeline-item">
<div class="timeline-card">
<span class="timeline-date"><i class="far fa-calendar-alt me-1"></i> 2024 — 2025</span>
<h4 class="timeline-title">
<span class="icon-circle"><i class="fas fa-globe"></i></span>
<span>Expansion internationale</span>
</h4>
<p class="timeline-desc">
Déploiement dans 12 pays et refonte globale.<br>
<span class="text-muted" style="color:#94a3b8; font-size:0.9rem;">Nouveaux marchés, partenariats clés.</span>
</p>
<span class="timeline-tag"><i class="fas fa-earth-americas me-1"></i> Global</span>
</div>
<div class="timeline-dot">
<i class="fas fa-globe"></i>
</div>
</div>
<!-- ÉLÉMENT 4 -->
<div class="timeline-item">
<div class="timeline-card">
<span class="timeline-date"><i class="far fa-calendar-alt me-1"></i> 2026 — futur</span>
<h4 class="timeline-title">
<span class="icon-circle"><i class="fas fa-brain"></i></span>
<span>Innovation & IA</span>
</h4>
<p class="timeline-desc">
Intelligence artificielle et expérience immersive.<br>
<span class="text-muted" style="color:#94a3b8; font-size:0.9rem;">R&D, nouvelles frontières technologiques.</span>
</p>
<span class="timeline-tag"><i class="fas fa-microchip me-1"></i> Next gen</span>
</div>
<div class="timeline-dot">
<i class="fas fa-microchip"></i>
</div>
</div>
</div>
<!-- FOOTER -->
<div class="footer-credit">
<span>
<i class="fas fa-arrow-right me-1" style="color:#6366f1;"></i>
Timeline inspirée de <a href="#" target="_blank">Style 08</a> • CSS uniquement
</span>
</div>
</div>
</body>
</html>
Télécharger le fichier source