Enable Striped and Animated Buttons
See original GitHub issueThe disabled state of buttons is handy but it doesn’t provide enough visual notification to dumb users that an action is occurring in the background. The loading JS is okay, but its use seems unnecessary in a lot of cases. Up until now I have used an adjacent .gif which I control along with the disabled state.
Now that we have striped and animated progress bars, however, it would be nice if we could apply those stylings to buttons.
<a href="#" class="btn animated">Normal animated button</a>
<a href="#" class="btn disabled animated">Disabled animated button</a>
edit: <del>I thought this had existed once? Perhaps it was in a pull request that didn’t make it.</del> It was #471. Seems the loading JS was the result but the animation was scrapped at that time.
Issue Analytics
- State:
- Created 12 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Animated buttons and flexbox button wrappers - Webflow
A button is an element that links to pages, page sections (anchors), external links, emails, assets, and telephone numbers.
Read more >How To Animate Buttons With CSS - W3Schools
Animated Buttons ; Add a "pressed" effect on click: Click ; Add an arrow on hover: Hover ; Add a "ripple" effect on...
Read more >Button striped animation - CodePen
Adding Classes. In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template....
Read more >Introducing Stunning Animation Effects & Stripe Payment Button
... we'll share with you several powerful new SeedProd features, including a handy Stripe payments button and engaging animation effects.
Read more >Building a Magical 3D Button - Josh W Comeau
In this tutorial, we'll build an animated 3D button with HTML and ... We also strip away the default border/padding that comes with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did a little working on it, just copied the css from progress-striped, and came with this working solution :
It’s working and it’s a nice visual return of a submitted/working button.
Here is some
.less
markup to generate the loading class for you in Bootstrap 2.0.1:I also came up with an AJAX activity monitor to auto-wire the animations across an application: