fix view animation

Page layout still not compatible with the animation effect. But the
effect itself should work properly now.