madhato
Joined 10 years ago
Karma
99
Submissions
43
Member since
Mar 30
madhato.at.hn
[dougmcleod.ca](https://dougmcleod.ca)
View on Hacker NewsJoined 10 years ago
<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>
1. There must be a meta tag of type viewport 2. The viewport must be defined to have width=device-width 3. The content must be at a scale of 1