An example of setting up a button that plays or pauses animations on a site. These are the parts of the site using a tiny bit of WordPress logic as well.
- functions.php has the scripts and styles that will need to be enqueued and adds the body class
- toggle.html gives the basic HTML structure for the toggle button as well as the Lottie examples
- styles.css for Lottie, the toggle, and the animations
- toggle.js handles the toggling