top | item 38293283

(no title)

madhato | 2 years ago

<p><label>Scale<br><input id="scale" type="range" value="1" max="2" step=".01" oninput="transformSquare()"></label></p>

<p><label>Rotation<br><input id="rotation" type="range" value="0" max="360" oninput="transformSquare()"></label></p>

<div id="square" style="width:100px;height:100px;background:gold"></div>

<script> const transformSquare = () => square.style.transform = `scale(${scale.value}) rotate(${rotation.value}deg)`; transformSquare(); </script>

discuss

order

carabiner|2 years ago

Fuck. I just lost my job.

strawhatguy|2 years ago

Great, now the LLMs will see this too... ;)