Last active
August 29, 2015 14:01
-
-
Save siberex/8bd467802e8345867690 to your computer and use it in GitHub Desktop.
Simple text loading spinner (., .., ...). Replace 3 with whatever you want (as long as it equals power of two − 1 ^_^) to get more dots :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tSpinnerState = 3|0; | |
| setInterval(function() { | |
| $(".tspinner").text( | |
| new Array( (++tSpinnerState, tSpinnerState &= 3) + 1 ).join(".") | |
| ); | |
| }, 275); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment