nohlelo.co.za/subsystem/subres/profileShuffle.js
2025-03-21 17:10:26 +02:00

14 lines
389 B
JavaScript

function profileShuffle() {
let shuffle = document.getElementsByClassName("profile");
for (let i = 0; i < shuffle.length; i++) {
let rnd = Math.round((Math.random() * (1.5 + 1.5) - 1.5) * 100) / 100;
// Shuffle profile cards
shuffle[i].style.transform = "rotate(" + rnd + "deg)";
}
}
document.addEventListener("DOMContentLoaded", function () {
profileShuffle();
});