plugins premium WordPress document.addEventListener('DOMContentLoaded', function () { var centralImage = document.querySelector('.center-div'); var leftTrigger = document.querySelector('.left-div'); var rightTrigger = document.querySelector('.right-div');leftTrigger.addEventListener('mouseover', function () { centralImage.style.transform = 'translateX(-100%)'; });rightTrigger.addEventListener('mouseover', function () { centralImage.style.transform = 'translateX(100%)'; });leftTrigger.addEventListener('mouseout', function () { centralImage.style.transform = 'translateX(0)'; });rightTrigger.addEventListener('mouseout', function () { centralImage.style.transform = 'translateX(0)'; }); });