Animation frame wrapper.