Created
May 31, 2024 22:59
-
-
Save iQuickDev/27e525f37a9d20376a138df857323363 to your computer and use it in GitHub Desktop.
Skew body on click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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