Skip to content

Asunfly/pretext-motion-bubble-demo

Repository files navigation

Pretext Motion Bubble Demo

Standalone focused preview demo for Cai Xukun video-silhouette driven text reflow inside a model-style chat bubble.

Pretext Motion Bubble Preview

What it does

  • Prepares a long body of text once with @chenglou/pretext
  • Loads a local Cai Xukun meme clip from public/media/cxk-basketball.mp4
  • Extracts the dark subject silhouette from each video frame
  • Recomputes available text slots for each line on every frame
  • Uses layoutNextLine() to flow text around the moving obstacle in real time
  • Wraps the effect in a focused preview shell so the reflow effect is easy to demo and share

Run

npm install
npm run dev

Open the local URL printed by Vite.

LAN Access

npm run dev:lan

Then open http://<your-local-ip>:4173/ from another device on the same network.

Verify

npm test
npm run build

Important Files

Notes

  • The key effect is layout motion, not character art.
  • The current obstacle is the extracted silhouette of the vendored Cai Xukun clip, not an abstract orb.
  • This repo currently targets standalone preview first. Real assistant-bubble integration is intentionally deferred into the plan documents.

Acknowledgements

Disclaimer

视频素材及文字仅供展示效果 demo,不涉及人身攻击及特殊含义。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors