Insert
CSSA stack of three horizontal lines parts to create space in the middle as a highlighted fourth line fades in and scales horizontally to fill the gap.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Loaders and spinners
- Use cases
- Loading and waiting, Documents and files
- Industries
- Legal, Cross-industry
- Style
- Minimal line · light stroke
- Set
- clause
- Tags
- barsscalelineloop
Companion assets
The same artwork, not animated. Derived from the entry’s own resting state, so it matches exactly.
Code
animation.svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-clause-insert" data-pulsar="clause-insert" viewBox="0 0 160 96"><g class="stack-top"><line x1="36" x2="124" y1="30" y2="30" stroke="currentColor" stroke-linecap="round" stroke-width="2"></line></g><g class="inserted-clause"><line x1="36" x2="116" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2.25"></line><path stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.5" d="M26 48h4"></path></g><g class="stack-bottom"><line x1="36" x2="108" y1="66" y2="66" stroke="currentColor" stroke-linecap="round" stroke-width="2"></line></g></svg>
animation.css
.pulsar-clause-insert {
display: block;
width: 100%;
height: 100%;
}
.pulsar-clause-insert .stack-top {
animation: clause-insert-part-top 4s ease-in-out infinite;
}
.pulsar-clause-insert .stack-bottom {
animation: clause-insert-part-bottom 4s ease-in-out infinite;
}
.pulsar-clause-insert .inserted-clause {
transform-origin: 36px 48px;
animation: clause-insert-appear 4s ease-in-out infinite;
}
@keyframes clause-insert-part-top {
0%,
100% {
transform: translateY(6px);
}
40%,
75% {
transform: translateY(-4px);
}
}
@keyframes clause-insert-part-bottom {
0%,
100% {
transform: translateY(-6px);
}
40%,
75% {
transform: translateY(4px);
}
}
@keyframes clause-insert-appear {
0%,
100% {
transform: scaleX(0.2);
opacity: 0;
}
40%,
75% {
transform: scaleX(1);
opacity: 1;
}
90% {
transform: scaleX(1);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-clause-insert .stack-top,
.pulsar-clause-insert .stack-bottom,
.pulsar-clause-insert .inserted-clause {
animation: none;
transform: none;
opacity: 0.8;
}
}