User:TheMcr/monobook.js: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary
(Blanked the page)
Tag: Blanking
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
document.addEventListener('DOMContentLoaded', function () {
    var images = document.querySelectorAll('img'); // Select all images on the page


    images.forEach(function (image) {
        // On mouse enter (hover)
        image.addEventListener('mouseenter', function () {
            image.style.transition = 'transform 0.3s ease';  // Smooth transition for scaling
            image.style.transform = 'scale(1.1)'; // Increase image size by 10%
        });
        // On mouse leave (hover out)
        image.addEventListener('mouseleave', function () {
            image.style.transform = 'scale(1)'; // Reset to original size
        });
    });
});

Latest revision as of 15:17, 5 April 2025