Line Deletion
CSSA line of text is struck through by a horizontal rule, then fades away as the lines below shift upward.
- Tier
- CSS
- Dependencies
- None
- Duration
- 5.5 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Errors and warnings, Documents and files
- Industries
- SaaS and software, Cross-industry
- Style
- Minimal line · light stroke
- Set
- changelog
- Tags
- fadelineloopminimaltext
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-changelog-deletion" data-pulsar="changelog-deletion" viewBox="0 0 160 96"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><rect width="112" height="64" x="24" y="16" fill="currentColor" fill-opacity=".03" rx="4"></rect><line x1="24" x2="136" y1="28" y2="28" opacity=".3"></line><circle cx="32" cy="22" r="1.8" fill="currentColor" opacity=".5"></circle><circle cx="38" cy="22" r="1.8" fill="currentColor" opacity=".5"></circle><circle cx="44" cy="22" r="1.8" fill="currentColor" opacity=".5"></circle><line x1="36" x2="84" y1="38" y2="38" opacity=".5"></line><g id="changelog-deletion-below-lines"><line x1="36" x2="98" y1="58" y2="58" opacity=".5"></line><line x1="36" x2="72" y1="68" y2="68" opacity=".35"></line></g></g><g id="changelog-deletion-deleted-group"><line x1="38" x2="44" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.5"></line><line x1="50" x2="114" y1="48" y2="48" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" opacity=".6"></line><line id="changelog-deletion-strike" x1="48" x2="116" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.8"></line></g></svg>
animation.css
.pulsar-changelog-deletion #changelog-deletion-strike {
animation: changelog-deletion-strike-anim 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes changelog-deletion-strike-anim {
0%,
20% {
stroke-dasharray: 0 70;
opacity: 0;
}
28%,
78% {
stroke-dasharray: 70 0;
opacity: 1;
}
88%,
100% {
stroke-dasharray: 0 70;
opacity: 0;
}
}
.pulsar-changelog-deletion #changelog-deletion-deleted-group {
animation: changelog-deletion-fade 5500ms ease-in-out infinite;
}
@keyframes changelog-deletion-fade {
0%,
36% {
opacity: 1;
}
44%,
82% {
opacity: 0.1;
}
92%,
100% {
opacity: 1;
}
}
.pulsar-changelog-deletion #changelog-deletion-below-lines {
animation: changelog-deletion-shift-up 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes changelog-deletion-shift-up {
0%,
38% {
transform: translateY(0);
}
48%,
82% {
transform: translateY(-10px);
}
92%,
100% {
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-changelog-deletion * {
animation: none !important;
}
}