Skip to content

Instantly share code, notes, and snippets.

@iQuickDev
Created May 31, 2024 22:59
Show Gist options
  • Save iQuickDev/27e525f37a9d20376a138df857323363 to your computer and use it in GitHub Desktop.
Save iQuickDev/27e525f37a9d20376a138df857323363 to your computer and use it in GitHub Desktop.
Skew body on click
// ==UserScript==
// @name Skew everything
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// @version 1.0
// @author -
// @description 6/1/2024, 12:54:10 AM
// ==/UserScript==
let clicks = 0;
document.querySelector('body').style.transition = 'transform 0.5s ease-in-out';
document.addEventListener('click', () => {
clicks++;
document.querySelector('body').style.transform = `rotate3d(${Math.random()}, ${Math.random()}, ${Math.random()}, ${clicks * 10}deg)`;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment