🚀 Check out my open source PHP & Laravel Valet tool, PHP Monitor.

Spinners are cool

January 12, 2013

I was reviewing what I needed to know for my exam of webdesign, and I found the jQuery .animate() function, which is quite nice. I quickly started googling for nice ideas for my own site when I thought about spinners. I had planned to put a spinner on the site but hadn’t gotten to that yet. I could use Javascript for that, but it would have to run before the DOM has been loaded so that kind of breaks the site. I then stumbled upon an interesting article. I used the code in the article (shameless copy and paste) and voila. A spinner on this site. I also reviewed the code required to load these articles, adjusted it (so the spinner goes away when the first article loads) and now the damn thing is completely functional. I still don’t know what the hell to do with animate on this site, seeing as I don’t find it very necessary to use it. I might experiment with fade-in effects on these pages, who knows.