Add a Bouncy-Ball Demo using D3
Closed this issue · 3 comments
bryanbraun commented
Add a bouncy-ball demo using D3.
This would be a good contribution for somebody familiar with D3 and its ecosystem.
I think the right supporting library to use would be d3-transition, but I'm not as familiar with that ecosystem, so hopefully you can confirm that via research or experience.
A few tips for making this:
- Start by duplicating the
/examples/template
folder and renaming your copy to something liked3
, and create the animation in/examples/d3/index.html
- Look at the other demos for reference parameters. For example, you can find details on ball-size, bounce height, easings, cubic-bezier functions, and more.
- To bring it into the main page, just add a new
<input>
and<label>
for it in the selection bar.
bryanbraun commented
(update: there's a PR up to address this at #23)
AmGarera commented
Going to be submitting my pull tonight, got this done pretty quick
bryanbraun commented
Fixed in #26. Closing.