Jump to content
Search Community

A button that animates/waits for an async function

NickWoodward test
Moderator Tag

Recommended Posts

Hi all,


Just thought I'd ask if anyone had any thoughts about this button that changes to a loader icon, waits for an async function to complete, and then displays a success icon.

It's in a useable state, but what I've come to realise is that my first efforts are usually a bit... strange :D So if anyone has a sec to comment on what I could be doing better (for example maybe 1 timeline that pauses vs 2 animations?) I'd appreciate it very much!

Thanks,

Nick

See the Pen WNgxaOP?editors=1011 by nwoodward (@nwoodward) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...