add gradient degree
bug fix on animate function