Skip to content

Instantly share code, notes, and snippets.

View ashicus's full-sized avatar
🏠
Working from home

Ash White ashicus

🏠
Working from home
View GitHub Profile
@ashicus
ashicus / count.js
Created April 27, 2016 18:57
Animate number counting
function animate_count($el, duration, prefix, postfix, is_decimal) {
prefix = prefix || '';
postfix = postfix || '';
is_decimal = is_decimal || false;
var text = $el.text().replace(/[^0-9]/g, '')
jQuery({ counter: 0 }).animate({ counter: parseInt(text) }, {
duration: 1250,
easing: 'swing',
@ashicus
ashicus / 0_reuse_code.js
Created November 8, 2015 01:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console