Summarize squeeze (Pro)
ProIncluded in $99A document that summarises itself: paragraphs press into gray bars and the summary points rise out of them.
On this page
ProEach paragraph presses into a gray bar, the page closes up, and the summary points rise out of the bars. Going back plays it in reverse.
Each paragraph presses down into a thin gray bar, top first, the page closes up to the height of what remains, and the summary points rise out of the bars one by one, their words drawn in from the start. Going back plays it in reverse. Heights are measured, so text of any length squeezes cleanly.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { SummarizeSqueeze } from "@/components/ui/chatcn/pro/summarize-squeeze"
<SummarizeSqueeze paragraphs={doc} summary={points} mode={mode} />Props
| Prop | Type | Notes |
|---|---|---|
paragraphs | string[] | The full text |
summary | string[] | The points |
mode | "full" | "summary" | Change it to play |
Accessibility
- The hidden version is
aria-hidden, so only the visible text is read.
Motion
- Press:
scaleYto 0.14 with a bar fading in, 45 ms apart. The box height eases 380 ms. Points rise 70 ms apart with aclip-pathreveal of their words. - Reduced motion: a crossfade.