After creating the train carousel for the webpage in #86, the need for a function that alters the carousel at a number of breakpoints seems fitting.
- The user could provide a number of (screen width, callback function) pairs, which sets up the event listener to call the handler each time a new breakpoint is reached.
After creating the train carousel for the webpage in #86, the need for a function that alters the carousel at a number of breakpoints seems fitting.