v© |roïÌenÜðÝ<¬ cordQ text/html MZ
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ord Fields - Geometry #1 - ed. 3 / 21 </title>
<meta property="og:image" content="https://plugins.whatsonchain.com/api/plugin/main/22a6256d496715499ab59835345e93572faef7d6fea3de8b635bb78d4dd95f56/0">
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
}
#art-container {
width: 600px;
height: 600px;
position: relative;
overflow: hidden;
}
.shape {
position: absolute;
opacity: 0;
transition: opacity 1s ease-in-out;
}
.circle, .square {
border: 2px solid white;
background-color: transparent;
}
.circle {
border-radius: 50%;
}
.square {
}
.triangle {
fill: transparent;
stroke: white;
stroke-width: 2;
}
</style>
</head>
<body>
<div id="art-container"></div>
<script>
const container = document.getElementById('art-container');
const shapes = ['circle', 'square', 'triangle'];
const maxSize = 200;
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function createShape() {
const shapeType = shapes[getRandomInt(0, shapes.length - 1)];
const size = getRandomInt(10, maxSize);
let shape;
if (shapeType === 'triangle') {
shape = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
shape.setAttribute('width', size);
shape.setAttribute('height', size * Math.sqrt(3) / 2);
shape.classList.add('shape', 'triangle');
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
const pathData = `M ${size / 2} 0 L ${size} ${size * Math.sqrt(3) / 2} L 0 ${size * Math.sqrt(3) / 2} Z`;
path.setAttribute('d', pathData);
path.setAttribute('class', 'triangle');
shape.appendChild(path);
} else {
shape = document.createElement('div');
shape.classList.add('shape', shapeType);
shape.style.width = `${size}px`;
shape.style.height = `${size}px`;
}
const maxPosition = 600 - size -6;
shape.style.top = `${getRandomInt(0, maxPosition)}px`;
shape.style.left = `${getRandomInt(0, maxPosition)}px`;
container.appendChild(shape);
setTimeout(() => {
shape.style.opacity = 0.2;
}, 100);
setTimeout(() => {
shape.style.opacity = 0;
setTimeout(() => container.removeChild(shape), 2000);
}, getRandomInt(5000, 10000));
}
setInterval(createShape, 20);
</script>
</body>
</html>
h
https://whatsonchain.com/tx/f3e2bde9c673dbcff5d358fd41dfd0378d3a6ef7760c55d2adbc9d147ebc5a82