Skip to content

Instantly share code, notes, and snippets.

@aza aza/gist:1044137
Created Jun 24, 2011

Embed
What would you like to do?
var bling = $('.bling'),
ratingWidth = 320
var lastTime = new Date()
$(function() {
bling.show()
var animateBling = function () {
console.log( "Elapsed: " + (new Date() - lastTime) )
lastTime = new Date()
bling
.attr('left', - bling.attr( 'width' ))
.animate({
left: ratingWidth,
duration: 1000
}, function() {
setTimeout(animateBling, 5000)
})
setTimeout(animateBling, 5000)
}
animateBling()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.