State Button
A button whose label scrambles, flips or slides through Send, Sending, Sent.
A Pro component: the live demo and the code come with Pro.
Settings
Pro- mode
- states
- auto
- resetDelay
- duration
- animateWidth
What it does
State Button is an animated button ready for your AI assistant, React or plain JavaScript, with no dependencies. Also called stateful button, label morph button, loading button or submit button states.
Each click walks the label through its states with a scramble, a split-flap or a masked slide while the width glides to fit the new word. It can wait on a promise, announces each change to screen readers and returns to rest.
With Pro
The AI prompt, the React component, the plain JavaScript file and the embed come with Pro, along with the live demo. Every setting is optional: with none, you get the effect as the preview shows it.