Skip to content
Main Menu
Menu
Brush Cutters
Compact Utility Loaders
Skid Steers
Excavators / Backhoes
Site Prep Tractors
Quick Finder
Parts
Support
Brochures & Manuals
Warranty
About
Our Story
Careers
Contact
Find A Dealer
Pricing
Become a Dealer
Customer PORTAL
DEALER LOGIN
Log out
Main Menu
Menu
Brush Cutters
Compact Utility Loaders
Skid Steers
Excavators / Backhoes
Site Prep Tractors
Quick Finder
Parts
Support
Brochures & Manuals
Warranty
About
Our Story
Careers
Contact
Find A Dealer
Pricing
6601 LF | 6601 SF
Enter part# or keyword
×
const deviceHasPointer = window.matchMedia("(pointer: fine)").matches; const container = document.querySelector(".magnifying-glass"); const magnifier = document.querySelector(".magnifying-glass__magnifier"); const enlargedImage = document.querySelector(".magnifying-glass__enlarged-image"); const speed = 0.2; let containerRect = {}; let mouse = { x: 0, y: 0 }; let glass = { x: 0, y: 0 }; let enlargedImagePos = { x: 0, y: 0 }; let aboveImage = false; let runMovement = false; function init () { if (deviceHasPointer) { containerRect = container.getBoundingClientRect(); window.addEventListener("mousemove", this.getMousePos); container.addEventListener("mouseenter", this.showGlass); container.addEventListener("mouseleave", this.hideGlass); moveGlass(); } } function getMousePos (e) { mouse.x = e.clientX; mouse.y = e.clientY; } function moveGlass () { glass.x = lerp(glass.x, mouse.x, speed); glass.y = lerp(glass.y, mouse.y, speed); enlargedImagePos.x = (glass.x - containerRect.left) / containerRect.width * -100; enlargedImagePos.y = (glass.y - containerRect.top) / containerRect.height * -100; magnifier.style.transform = `translate(calc(${glass.x}px - 50%), calc(${glass.y}px - 50%))`; enlargedImage.style.transform = `translate(${enlargedImagePos.x}%, ${enlargedImagePos.y}%)`; if (runMovement) requestAnimationFrame(moveGlass); } function showGlass () { containerRect = container.getBoundingClientRect(); aboveImage = true; runMovement = true; magnifier.style.opacity = "1"; moveGlass(); } function hideGlass () { aboveImage = false; magnifier.style.opacity = "0"; setTimeout(() => { runMovement = false; }, 250); } function lerp (a, b, n) { return (1 - n) * a + n * b; } init();
0
Shopping Cart
Your cart is empty
Return to Parts Store
Scroll to Top