Wonky.js

Make any page off-kilter! Drag your desired tilt amount to your bookmarks bar. Click to test on this page.

Subtle
Medium
A lot
Break Everything

Customize




Code

javascript:(function() {
    const allElements = document.body.getElementsByTagName('*');
    for(let i = 0; i < allElements.length; i++) {
        const element = allElements[i];
        // random rotation degree between -0.5 and 0.5 in increments of 0.1
        const deg = (Math.floor(Math.random() * 11) - 5) / 10;
        element.style.transition = 'transform 0.5s ease';
        element.style.transform = 'rotate(' + deg + 'deg)';
        element.style["transform-origin"] = "50% 50%";
    }
})();