let lastScrollPosition = 0;
const headerWrapper = document.querySelector('#header-wrapper'); // Changed selector
const scrollThreshold = 100;

function getTranslateValue() {
    return window.innerWidth <= 477 ? -38 : -60;
}

window.addEventListener('scroll', () => {
    const currentScrollPosition = window.pageYOffset || document.documentElement.scrollTop;
    if (currentScrollPosition > scrollThreshold) {
        // Scrolling down
        if (currentScrollPosition > lastScrollPosition) {
            headerWrapper.style.transform = `translateY(${getTranslateValue()}px)`;
        }
        // Scrolling up
        else {
            headerWrapper.style.transform = 'translateY(0)';
        }
    } else {
        // Reset position when above threshold
        headerWrapper.style.transform = 'translateY(0)';
    }
    lastScrollPosition = currentScrollPosition;
});

// Handle resize events
window.addEventListener('resize', () => {
    if (lastScrollPosition > scrollThreshold) {
        headerWrapper.style.transform = `translateY(${getTranslateValue()}px)`;
    }
});
Find Your Perfect Fit

4L60E

Quality Rebuilt
Transmissions
Comprehensive
Product Catalog
Core Return
Program
Customer
Support
Filter by Vehicle
Filter by Category
Select Category
Search Product
Real Stories, Real Results

What Our Customers Say

Don't just take our word for it. Hear from fellow DIYers and mechanics who've experienced the Shift Rite difference. Our customers consistently praise our quality products, expert advice, and outstanding service. See why so many trust us for their transmission needs.
Christian Davis
I purchased a 48RE Transmission from ShiftRite! It arrived quickly, installed it, and I was back on the road! So far all is well! The communication was outstanding and the people at ShiftRite really take care of their customers! Thanks!
Position
Lisa Sewell
As a first time customer, I was extremely pleased with how efficient and professional this company is. I had the pleasure of dealing with Molly who was very knowledgeable and pleasant. Molly was timely with returning calls/text messages. She is a great asset to the company. I would highly recommend their services if needed. Lisa Sewell
Position
John Parks
If you have any doubt about purchasing your transmission from Shiftrite put it to the side . I can promise you they stand on their work because it’s top shelf and the small chance they do make a mistake they will rectify it I assure you . In my case the mistake was on my end Bret still helped me resolve the problem . Thanks again Bret and the team at ShiftRite . I appreciate it !
Position
Raymond Noblin
The owner was very involved with my 4l80e swap. Had an internal harness connector o-ring leak they helped me resolve to prevent fluid from leaching up into the main input harness. After that the trans performed flawlessly. Great communications and shipping crate professionally done. I will use them again I am sure. I would proudly wear a shirt or hat with their logo. Thanks team.
Position
Ginger Duke
Needed a transmission for my dodge 5500. They shipped it quickly to my mechanic then let me bring the core in since I was going to be in the area, so I didn’t have to spend a bunch on shipping to get my core deposit back! Molly is the best to deal with! Can’t go wrong with them!
Position
Stuck in Neutral?

Let's Get You Rolling

Need expert advice or have questions about our products? Our transmission specialists are ready to help. Don't let transmission troubles slow you down – reach out now and get back on the road faster.

Send us a message

  • If applicable