create animate lib for compass