random color using js

PHOTO EMBED

Wed Jun 05 2024 09:35:00 GMT+0000 (Coordinated Universal Time)

Saved by @divyasoni23 #jquery

$('.technology-all__img').each(function () {
	var randomColor = Math.random() < 0.5 ? '#f8f8f8' : 'transparent'; // Randomly choose between 	  two colors
	$(this).css('background', randomColor);
});
content_copyCOPY