Gif-Generator Tailwind Templates

Gif Generator

This is a simple React-based GIF generator that fetches random GIFs from the GIPHY API. Built with custom hooks and Axios for API integration, the app displays a random GIF along with a button to generate new ones. It's styled using Tailwind CSS and includes a loading spinner for better user experience during data fetching.

šŸŽ² Random GIF Generator

A fun and interactive web app built with React that fetches random GIFs from the GIPHY API. Users can either generate a completely random GIF or search for one by keyword (tag).

šŸ”„ Live Preview

https://gifgeneratoremoji.netlify.app/


šŸ“ø Features

  • šŸŽžļø Generate a random GIF
  • šŸ” Search and generate GIFs by keyword (tag)
  • ā³ Loading spinner during API fetch
  • šŸŽØ Stylish UI using Tailwind CSS
  • āš›ļø Built with modern React (hooks, component structure)

šŸš€ Tech Stack

  • React (with Hooks)
  • Tailwind CSS
  • Axios for API calls
  • GIPHY API for GIF data

šŸ› ļø Installation

  1. Clone the repository:

git clone https://github.com/HimanshuKumar101/Gif-Generator.git cd random-gif-generator

Install dependencies:

npm install Add your GIPHY API key:

Create a .env file in the root directory: REACT_APP_GIPHY_API_KEY=your_giphy_api_key_here Run the app:

npm start The app will run at http://localhost:3000.

🧠 How It Works Custom Hook (useGif) handles the logic of calling the GIPHY API and managing GIF data.

Random Component displays a randomly selected GIF.

Tag Component allows users to type a keyword and fetch related GIFs.

Spinner shows while loading for smooth UX.

✨ To-Do / Improvements Add dark mode

Pagination or infinite scroll

Trending GIFs section

Share GIF feature

Save favorites locally

Top categories

Loading Svelte Themes