Recreated from the supplied 9.47-second, 720 × 1280 screen recording.
The word SPLIT is rendered as two pseudo-element layers:
::beforedisplays the top half usingclip-path: inset(0 0 50% 0).::afterdisplays the bottom half usingclip-path: inset(50% 0 0 0).- On hover, the upper layer moves upward and turns red (
#ff3b30). - The lower layer moves downward and turns blue (
#007aff). - Both halves use a 0.4-second cubic-bezier transition and a slight skew.
The following are transcribed from the visible editor frames:
.split-text:position: relative,font-size: 6rem,font-weight: 900,letter-spacing: 5px,color: transparent,cursor: pointer- Pseudo-elements:
content: attr(data-text),position: absolute,top: 0,left: 0,color: #ffffff, transition on transform for 0.4s - Top/bottom clip-path insets:
inset(0 0 50% 0)andinset(50% 0 0 0) - Hover transforms:
translateY(-15px)/translateY(15px)withskewX(-5deg) - Hover colors:
#ff3b30and#007aff
The full transition timing function is partially obscured in the recording, so a cubic-bezier easing is used to reproduce the observed smooth movement.
Extract the ZIP and open index.html in a modern browser. No dependencies or build step required.
index.html— split text demo and code panelstyle.css— split-layer clipping and hover animationscript.js— click/keyboard toggle and Copy CSS buttonREADME.md— source notes and run instructions
The video is a screen recording, not the original project archive. The visible CSS rules listed above were transcribed; supporting HTML, responsive styles, and JavaScript interactions were added to make the demo complete and runnable. Hidden source code cannot be recovered byte-for-byte.
mrchandrayee · GitHub