replaced jquery animation with css