+ 2

How to create a loading image on button?

I want to create a button. i have designed it with css. but how can i add a loading image in it to ensure users that their form is submitting. i can do it with onclick event on JS but it keeps showing imaging even form is declined. so need help.

21st Jun 2017, 2:56 PM
Anish Khatri
Anish Khatri - avatar
5 Respuestas
+ 1
try css progress bar
21st Jun 2017, 9:20 PM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
Thanks for your answer bro. But it would be better if you explained more detail.
21st Jun 2017, 9:26 PM
Anish Khatri
Anish Khatri - avatar
+ 1
You may use CSS Transition effects or setInterval function to have expiry time. Transition effects can be applied to a wide variety of CSS properties, including background-color, width, height, opacity, and many more. I dont remember the syntax. Just google using keyword for details.
21st Jun 2017, 9:34 PM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
thank you bro
22nd Jun 2017, 11:05 AM
Anish Khatri
Anish Khatri - avatar