Struggling to add 2 conditions in 1 function, need some guidance. Here's the code I have:
var timeCheck = function(){
var timePos = videoBGPlayer.currentTime;
if (timePos > 1){
TweenLite.to(videoBGPlayer, 3, { marginTop: -130});
videoBGPlayer.removeEventListener('timeupdate', timeCheck, false);
}
};
My goal is to make the video move up when its timePos is 1 and go back to its original position when timePos is 7.
Any assistance on this matter would be highly appreciated.