An open API service indexing awesome lists of open source software.

https://github.com/goganotclown/accordion

A lightweight and customizable JavaScript accordion to enhance your website's interactivity. Easily create collapsible content sections with smooth transitions for a user-friendly experience.
https://github.com/goganotclown/accordion

accordion animation collapsible css-variables css3 customizable frontend html5 interactive javascript mit-license responsive-design scss ui-component user-interface web-development

Last synced: 4 months ago
JSON representation

A lightweight and customizable JavaScript accordion to enhance your website's interactivity. Easily create collapsible content sections with smooth transitions for a user-friendly experience.

Awesome Lists containing this project

README

          

# Accordion

A lightweight and customizable JavaScript accordion to enhance your website's interactivity.
Easily create collapsible content sections with smooth transitions for a user-friendly experience.

[![Accordion Preview](https://i.postimg.cc/5NW1jCFF/image.png)](https://postimg.cc/V5g2V5gY)

## Usage

1. **Include Styles and Fonts:**
- Add the following stylesheet link to your HTML `` to import the required font:
```html


```

2. **HTML Structure:**
- Create an HTML structure for your accordion:
```html







  • Answer For Question 1






    Lorem ipsum dolor sit amet consectetur adipisicing elit. Sit, illum ad consequatur accusantium
    ratione harum voluptates corrupti fuga nostrum quidem inventore laboriosam illo modi veritatis.
    Et ea nam mollitia in?








```

3. **Include JavaScript:**
- Import the JavaScript file at the end of your HTML file, just before the closing `` tag:
```html

```

4. **Customization:**
- Customize the accordion styles in your `style.css` or `style.scss` file according to your project's design
preferences.

## Styles and Variables

The component utilizes custom styles and CSS variables for easy customization. Here are key variables available in
the `style.css` and `style.scss`:

```css
:root {
--black: #111111;
--font: 'JetBrains Mono', monospace;
}
```

```scss
$black: #111111;
$font: 'JetBrains Mono', monospace;
```

## Additional Information

**License:**
This project is licensed under the MIT License.

Enjoy using the Accordion!