ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Loading animation for AJAX #118

Open ndarville opened 11 years ago

ndarville commented 11 years ago
$('.js').on('click', function(e) {
    // ...
    generateAnimation();
    // ...
    endAnimation(); // assuming a success doesn't already do this
});
ndarville commented 11 years ago

Look into using CSS transitions on click like Tumblr’s <3.

ndarville commented 11 years ago
  1. http://blog.alexmaccaw.com/css-transitions
  2. http://daneden.me/animate/#bounce
  3. http://24ways.org/2009/css-animations/
  4. http://media.24ways.org/2009/15/spinner.html
ndarville commented 11 years ago

https://news.ycombinator.com/item?id=6246183