prepare animation