use layer as animation