Web · Prompt composer
Vanish
Messages that turn to particles and rebuild.
A prompt composer that enhances your textarea: sent text breaks into particles that arc into the chat and rebuild as your message, with cycling placeholders and a light that runs around the field while the reply is written.
Demo
A recording of the demo. Open it in a new tab
What it does
- 01
Particles are sampled from the real text, wrapped exactly as the textarea wraps it
- 02
Each particle lands at its place in the new message, even if the thread moves mid-flight
- 03
Cycling placeholders, auto-grow, and a Stop button while generating
- 04
IME-safe Enter, a capped particle count and a fade for reduced motion
Use it
git clone https://github.com/YagnikBarasiya23/vanish-prompt-input.git
# copy vanish.js and vanish.css into your projectimport Vanish from './vanish.js';
const composer = new Vanish(document.querySelector('textarea'), {
placeholders: ['Plan a post for Saturday', 'Why did reach drop?'],
target: () => thread.lastElementChild,
});
composer.on('submit', async text => {
addMessage(text);
composer.generating(true);
await askYourModel(text);
composer.generating(false);
});Every option, the technique behind the motion and the accessibility notes are in the README on GitHub
More components
All 15- Flutter
- Flutter
Get in touch
Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.
- Phone
- +91 70488 09875
- Based in
- Rajkot, Gujarat, India
- Elsewhere