wrap the animation & make the webcam triangle working