</table>
</main>
- <div class="yawn">🥱</div>
+ <div tabindex="0" class="yawn">🥱</div>
<script type="module" src="/script.js"></script>
</body>
'sleepy.sum(number[])': 'Sleepily sum together an array of numbers.'
});
}
+
+document.querySelector('div.yawn').addEventListener('click', e => {
+ console.log('👏 You found an easter egg!');
+});
.yawn:focus-within {
opacity: 65%;
transition: opacity 200ms;
+}
+
+@keyframes throb {
+ 50% {
+ transform: scale(1.3);
+ }
+}
+
+.yawn:focus {
+ animation: throb 1s;
+}
+
+.yawn:active {
+ animation: none;
}
\ No newline at end of file