CInViewport
The animation runs only when the object is in the center of viewport
Scroll Down...