ok. i have the answer.
here is the correct code how to add this into the function.
$('.testclass').click ->
colorthis = $(this)
colorFader = ->
colorthis.animate
backgroundColor: '#33e27d', 1000, 'linear', ->
colorthis.animate
backgroundColor: '#27ae60', 1000, 'linear', colorFader
colorFader()