|  |  |  | @ -7,21 +7,20 @@ class scroll { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 0) { | 
			
		
	
		
			
				
					|  |  |  |  |         return 0; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY > 0 && scrollY < 7 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY > 0 && scrollY < 7 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -scrollY; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY === 7 * height){ | 
			
		
	
		
			
				
					|  |  |  |  |         return  -height; | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 7 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     }else | 
			
		
	
		
			
				
					|  |  |  |  |     if (index === 2) { | 
			
		
	
		
			
				
					|  |  |  |  |     } else if (index === 2) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 0) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY > 0 && scrollY < height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height - scrollY; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY === 7 * height){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 7 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -1 * height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | @ -37,39 +36,34 @@ class scroll { | 
			
		
	
		
			
				
					|  |  |  |  |     //     return -height;
 | 
			
		
	
		
			
				
					|  |  |  |  |     //   }
 | 
			
		
	
		
			
				
					|  |  |  |  |     // }
 | 
			
		
	
		
			
				
					|  |  |  |  |     else | 
			
		
	
		
			
				
					|  |  |  |  |     if (index === 4) { | 
			
		
	
		
			
				
					|  |  |  |  |     else if (index === 4) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY <= 2 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height; | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (scrollY > 2 * height && scrollY < 3 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return 3 * height - scrollY; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY === 4 * height){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 4 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     }else | 
			
		
	
		
			
				
					|  |  |  |  |     if (index === 5) { | 
			
		
	
		
			
				
					|  |  |  |  |     } else if (index === 5) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY <= 3 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height; | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (scrollY > 3 * height && scrollY < 4 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return 4 * height - scrollY; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY === 5 * height){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 5 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     }else | 
			
		
	
		
			
				
					|  |  |  |  |     if (index === 6) { | 
			
		
	
		
			
				
					|  |  |  |  |     } else if (index === 6) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY <= 4 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height; | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (scrollY > 4 * height && scrollY < 5 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return 5 * height - scrollY; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(scrollY === 6 * height){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY === 6 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return -height; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |         
 | 
			
		
	
		
			
				
					|  |  |  |  |     }else | 
			
		
	
		
			
				
					|  |  |  |  |     if (index === 7) { | 
			
		
	
		
			
				
					|  |  |  |  |     } else if (index === 7) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (scrollY <= 5 * height) { | 
			
		
	
		
			
				
					|  |  |  |  |         return height; | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (scrollY > 5 * height && scrollY < 6 * height) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -92,13 +86,19 @@ class scroll { | 
			
		
	
		
			
				
					|  |  |  |  |     // }
 | 
			
		
	
		
			
				
					|  |  |  |  |   }; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   linearFormula = (currentScroll, position1, position2, scroll1, scroll2 ) => { | 
			
		
	
		
			
				
					|  |  |  |  |   linearFormula = (currentScroll, position1, position2, scroll1, scroll2) => { | 
			
		
	
		
			
				
					|  |  |  |  |     const alpha = (currentScroll - scroll1) / (scroll2 - scroll1); | 
			
		
	
		
			
				
					|  |  |  |  |     const deltaPosition = position2 - position1; | 
			
		
	
		
			
				
					|  |  |  |  |     const currectPosition = position1 + deltaPosition * alpha; | 
			
		
	
		
			
				
					|  |  |  |  |     return currectPosition; | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   }; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   doubleLinearFormula = (currentScroll) => { | 
			
		
	
		
			
				
					|  |  |  |  |     const rect = document.getElementsById("video").getClientRects(); | 
			
		
	
		
			
				
					|  |  |  |  |     console.log(rect); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     return 1; | 
			
		
	
		
			
				
					|  |  |  |  |   }; | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | const _scroll = new scroll(); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |