Find out how to create inclusive, progressively enhanced, autoplaying HTML5 videos as a replacement for animated GIFs and component backgrounds. https://www.robsimpson.me/tutorials/autoplay-html5-video-on-ios-android-and-desktop/
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Open up your terminal and run:
npm install
Once finished run:
npm run dev
This will compile all the development files into the build directory and watch for any changes you make to the HTML, CSS or JS files.