css lightweight accordion jquery

How we can create a lightweight accordion using HTML CSS & JavaScript? Solution: Yes, we can create a lightweight accordion with CSS &  jQuery which is a JavaScript library. You can call this CSS Lightweight Accordion With JQuery.

Maybe you have seen many types of accordion on multiple websites. Some use animated & with good UI or some use simple for fast loading. Previously I shared an accordion using HTML CSS JavaScript If you don’t saw check out that.

Today you will learn to create a lightweight accordion with jQuery & CSS. This one has the minimal & clean design you can place it on your website. Basically, accordion is for controlling elements comprising a vertically stacked list of items with a heading.  You can use accordion on may places, like FAQ.

So, Today I am sharing CSS Lightweight Accordion With jQuery. In other words, a lightweight accordion with a minimal design using HTML CSS jQuery. I used jQuery for toggle effect and open accordion with delay. This accordion has plus & minus buttons, when we open an accordion’s tab then the plus icon becomes minus.

If you are thinking now how this accordion actually is, then see the preview given below.

Preview Of jQuery Accordion With Minimal Design

See this video preview to getting an idea of how this program looks like.

Now you can see this visually. If you like this, then get the source code of its.

You May Also Like:

CSS Lightweight Accordion Source Code

Before sharing source code, let’s talk about it. This a list based accordion, I created a list for this.  Inside list, I created some buttons for put headings. First I put text display none (more info), when we click on any buttons then the display will block or visible.  This part is created using jquery, jquery show text elements with 300 mile-second delay on button click.

This is a lightweight program that’s why it has fewer codes. In the CSS section, I put basics like font family, size, background color, etc. There is nothing unique. You will fully understand after getting the codes, there is nothing to explain that’s why today I am not writing more.

For creating this accordion you have to create 3 files. First for HTML, second for CSS, & third for JavaScript or jQuery. Follow the steps to creating this without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given here below.

style.css

Now create a CSS file named ‘style.css’ and put these codes.

function.js

The final step, Create a JavaScript file named ‘function.js‘ and put the codes.

That’s It. Now you have successfully created CSS Lightweight Accordion with jQuery. If you have any doubt or question comment down below.

Thanks For Sharing, Keep Sharing.

LEAVE A REPLY

Please enter your comment!
Please enter your name here