Skip to content

Commit

Permalink
fix #562
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Dec 17, 2024
1 parent 93c484e commit d6761f1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions www/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,28 @@ Enhance HTML with concise DOM, event and async features. **Make writing interact

~~~hyperscript
on pointerdown
repeat until event pointerup
repeat until event from the document
set rand to Math.random() * 360
transition
*background-color
to `hsl($rand 100% 90%)`
over 250ms
end
transition *background-color to initial
~~~

</figure>

<span class="center" style="margin-top: calc(-1.5*var(--gap))"><button class="crowded padding padding-block allcaps" _="
on pointerdown
repeat until event pointerup
set rand to Math.random() * 360
transition *background-color
to `hsl($rand 100% 90%)`
over 250ms
end">Try me: press and hold</button></span>
<span class="center" style="margin-top: calc(-1.5*var(--gap))"><button class="crowded padding padding-block allcaps"
_="on pointerdown
repeat until event pointerup from the document
set rand to Math.random() * 360
transition *background-color
to `hsl($rand 100% 90%)`
over 250ms
end
transition *background-color to initial">
Try me: press and hold</button></span>
</div>


Expand Down

0 comments on commit d6761f1

Please sign in to comment.