BTCPrivate / btcp-widget

JS widget for online shop payments
5 stars 2 forks source link

Quick blackout & loading anim #66

Open mattpass opened 6 years ago

mattpass commented 6 years ago

When you click the button to display the modal it firstly gets a new wallet address and then after it returns (approx 1 sec later), does it fade in the blackout and slide the modal into view. For this 1 sec though, the user may feel nothing is happening and this delay doesn't look ideal.

So, instead, as soon as the user has clicked the widget, fade in the blackout and show a quick animation of some sort. Maybe animate the BTCP circle icon in some way and slide out of view as the payment modal slides in?

mattpass commented 6 years ago

After some experimentation, I discovered that we'd need some rejigging to show blackout screen quicker and is less ideal as it would still be 1-2 secs before anything is shown.

As a better solution, animate something on the widget button until the overlay has shown