shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Components
Search components... ⌘K
  • Animations
    • Text 11
    • Background 2
    • Hero Backgrounds 10
  • Components
    • Text Blocks 4
    • Branding 3
    • Navigation 7
    • Buttons 2
    • Cards 13
    • Tooltips 6
    • Stacks 2
    • Link Previews 2
  • Sections
    • Video Headers 1
    • Hero Sections 4
    • Landing Blocks 3
    • Process Sections 3
  • References
    • Knowledge
    • Packages
    • Process
    • Blog
Components/ Animations/ Text/ Glitch Slice
Animations

Glitch Slice

Text · Split Effects

@sbx/core-ui/components/text/GlitchSlice.svelte
light
shredbx shredbx shredbx shredbx
eXperimental Lab eXperimental Lab eXperimental Lab eXperimental Lab
dark
shredbx shredbx shredbx shredbx
eXperimental Lab eXperimental Lab eXperimental Lab eXperimental Lab

// Import

GlitchSlice.svelte typescript
import GlitchSlice from '@sbx/core-ui/components/text/GlitchSlice.svelte';

// Spec

User Story
As a visitor, I see a glitch-sliced headline with chromatic aberration so the page feels cyber and intentional rather than flat.
Scenario
The component renders four stacked layers of the same text. A horizontal 50/50 clip-path splits a top half and bottom half; red and cyan chromatic-aberration layers sit behind them. Hovering the parent triggers a horizontal offset animation on the split halves and increases the chromatic layers opacity, creating a glitch/slice effect that settles back on leave.
Parameters
NameTypeDefaultDescription
textstring—Animated word or phrase (the split target).
beforestring''Non-animated text rendered inside the same wrap BEFORE `text` — include to keep the clip-path split aligned over a full phrase.
afterstring''Non-animated text rendered inside the same wrap AFTER `text`.
durationstring'0.5s'CSS transition duration for the slice offset and chromatic opacity.
easingstring'cubic-bezier(0.23, 1, 0.32, 1)'CSS easing function used by the hover transition.
offsetXnumber5Horizontal pixel offset applied to the top/bottom halves on hover.
glitchOffsetnumber3Pixel offset of the chromatic-aberration (red/cyan) layers.
glitchOpacitynumber0.8Opacity of the chromatic-aberration layers at hover peak.
colorRedstring'#ff0040'Color of the red chromatic layer.
colorCyanstring'#00ffff'Color of the cyan chromatic layer.

// Related

shred bx bx
e X X perimental Lab
Diagonal Slice
Text
S S S S S hredbx
e X X X X X perimental Lab
Quad Split
Text
shred bx bx bx bx bx
e X X X X X perimental Lab
Editorial Split
Text
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |