Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (20 sloc) 626 Bytes
# Put it in a line
up = (bar) ->
bar.animate(top:'-=40', height:78).animate height:38
# Or use indentation instead of parenthesis
down = (bar) ->
height: 78
top: '+=40'
height: 38
# Keep the syntax clean
right = (bar) ->
bar.animate(width:78).animate left: '+=40', width:38
# Or put all the brackets possible
# (but that's not what CS is about ;)
left = (bar) ->
# All for definitions are valid and usable:
$j('#ani3_jump_around').click ->
left down right right up up left left down right bars2[4]
Something went wrong with that request. Please try again.