Skip to content

Instantly share code, notes, and snippets.

@jjaffeux
Created October 9, 2013 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjaffeux/6898003 to your computer and use it in GitHub Desktop.
Save jjaffeux/6898003 to your computer and use it in GitHub Desktop.
moodstoock_with_a_twist
$(document).ready(function () {
$.ajax({
url: "/usercount",
type: "GET",
dataType: "text"
}).done(function (data) {
$({
nb_developers: 0
}).animate({
nb_developers: data
}, {
duration: 2000,
easing: 'swing',
step: function () {
$('#nb_developers').text(Math.ceil(this.nb_developers));
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment