Skip to content

docode537/simple-accordion-using-css-and-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Simple Accordion using JavaScript

This is a simple and responsive accordion component built using HTML, CSS, and JavaScript. The accordion allows users to toggle between different sections by clicking on the headers.

πŸ› οΈ Features

  • Simple and lightweight
  • Responsive design
  • Smooth open/close animations
  • Uses pure JavaScript (no libraries required)

πŸ“‚ Project Structure

πŸ“ project-folder
 β”œβ”€β”€ πŸ“„ index.html   # Main HTML file
 β”œβ”€β”€ πŸ“„ style.css    # CSS for styling
 β”œβ”€β”€ πŸ“„ script.js    # JavaScript for accordion functionality

πŸ“œ Usage

  1. Clone the repository:
    git clone https://github.com/docode537/simple-accordion-using-css-and-js.git
  2. Open index.html in your browser.

πŸ“ How It Works

  • Clicking on an accordion header expands the content below it.
  • Clicking again or selecting another tab closes the previously opened section.
  • Smooth CSS transitions for better user experience.

πŸŽ₯ Video Tutorial

Watch the tutorial video: Link.

πŸ“© Connect With Me

🌐 Website: DoCode
🐦 blog post: Blog Post
πŸ“§ Email: docode537@gmail.com


Feel free to contribute or suggest improvements! 😊

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages