So, now I've updated my gif slider to take inputs from the user. Click here to play with it!
Some nice inputs that have output gifs that make some sense are things like happy/sad or hello/goodbye. Obviously you can get a lot of weird gifs if you want, but I've got it set for a PG rating (:
Essentially, I altered the code to take user inputs from the DOM. Here is the HTML file below.
And then this is the p5.js file below. Essentially, I selected in the inputs from the left and right fields and then input their values into my Giphy API query url. I had to move the loadJSON() file into the function updateGif() so that it would reload the new JSON files each time the user pressed the "Go!" button. Pretty much everything else is the same as in my previous post though!