An open API service indexing awesome lists of open source software.

https://github.com/kimfucious/canvas-image-slider


https://github.com/kimfucious/canvas-image-slider

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Canvas Image Slider

This is an example of how to create an HTML 5 Canvas API based image slider

## To Run Locally

1. clone `https://github.com/kimfucious/canvas-image-slider.git` to a directory of your choosing
2. navigate into that directory
3. execute `npm i`
4. execute `npm start`

## References

- [Optimizing Canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas)
- [Preloading Images](https://rembound.com/articles/how-to-load-and-draw-images-with-html5-canvas)
- [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame)
- [Animating with javascript](https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/)
- [Using requestAnimationFrame with React Hooks](https://css-tricks.com/using-requestanimationframe-with-react-hooks/)