How to animate button text? (loading type of animation) - jquery?

Posted by AL on Stack Overflow See other posts from Stack Overflow or by AL
Published on 2010-04-30T08:34:42Z Indexed on 2010/04/30 8:37 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

I got something that I want to do and want to see what you guys think and how can it be implemented.

I got a form in a page and the form will submit to itself to perform some process (run functions) in a class.

Upon clicking the submit button, I want to animate the button text to “SUBMIT .” -> “SUBMIT ..” -> “SUBMIT …” -> “SUBMIT ….” -> “SUBMIT ….” and then back again. Sort of “animate” the button text.

Once the whole process is done, the button text will goes back to be “SUBMIT” text again.

Please note that I am not looking for image button solution, meaning that I do not want to implement gif animated button image.

Anyone done this before or know how this can be done? I have google but seems nothing of this kind to be found.

Thanks!

AL

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript