In this example, I will show how to use HTML5, CSS3, Bootrap 4, JQuery/Javascript/AJAX and the GIPHY API to create a really cool app. This is dynamic web page that populates with gifs of your choice.
To view demo click on this link: (Demo Link).
- Create an array of strings, each one related to a topic that interests you. Save it to a variable called
topics
. - Your app should take the topics in this array and create buttons in your HTML.
- When the user clicks on a button, the page should grab 10 static, non-animated gif images from the GIPHY API and place them on the page.
- When the user clicks one of the still GIPHY images, the gif should animate. If the user clicks the gif again, it should stop playing.
- Under every gif, display its rating (PG, G, so on).
- Add a form to your page takes the value from a user input box and adds it into your
topics
array. Then make a function call that takes each topic in the array remakes the buttons on the page.
- Rejoice! You can no save yourself .000000001 of a second to find your Gyphs using my app instead of giphy.com.
- You can either add different names to search for or click on the buttons already created.
- After clicking on a button the app will load 10 Gyphs
- To animate you Gyph just click on it.