パーツ番号 02-17-03 ・ CSSのみ
タイムライン接続見出しセット
左端の縦ラインがスクロールで上から下へ伸びていき、通過したレベルのドットが順番に点灯する。見出しそのものが工程の一部に見えるので、導入フローや手続きの説明ページに向く。
プレビュー
ソースコード
HTML
<div class="set io-reveal">
<p class="lv2">導入支援</p>
<p class="lv3">初回ヒアリング</p>
<p class="lv4">ご提案から契約まで</p>
</div>CSS
.d02-17-03 .set{ width:100%; position:relative; padding-left:22px; display:flex; flex-direction:column; gap:18px; }
.d02-17-03 .set::before{ content:""; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:#c7d2fe; transform-origin:top center; }
.d02-17-03 .set::after{ content:""; position:absolute; left:5px; top:6px; width:2px; height:0; background:#4f46e5; transition:height 1.1s cubic-bezier(.22,1,.36,1) .1s; }
.d02-17-03 .set.is-in::after{ height:calc(100% - 12px); }
.d02-17-03 .lv2,.d02-17-03 .lv3,.d02-17-03 .lv4{ position:relative; margin:0; }
.d02-17-03 .lv2::before,.d02-17-03 .lv3::before,.d02-17-03 .lv4::before{ content:""; position:absolute; left:-22px; top:.55em; width:10px; height:10px; margin-left:0; border-radius:50%; background:#e0e7ff; transition:background .3s ease; }
.d02-17-03 .lv2{ font-size:22px; font-weight:800; color:#312e81; line-height:1.4; }
.d02-17-03 .lv3{ font-size:17px; font-weight:700; color:#3730a3; line-height:1.4; }
.d02-17-03 .lv4{ font-size:14px; font-weight:700; color:#64748b; line-height:1.4; }
.d02-17-03 .set.is-in .lv2::before{ background:#4f46e5; transition-delay:.15s; }
.d02-17-03 .set.is-in .lv3::before{ background:#4f46e5; transition-delay:.55s; }
.d02-17-03 .set.is-in .lv4::before{ background:#4f46e5; transition-delay:.95s; }クラス名 .d02-17-03 は本ライブラリ内での識別用です。複数のパーツを同じページで使う場合は、重複しないよう名前を変更してください。