HTML AND CSS, YouTube

Awesome Accordion Menu Using Only HTML & CSS

Awesome Accordion Menu Using Only HTML & CSS

Coding BD has given here an Awesome Accordion Menu Using Only HTML & CSS. We created an accordion menu. It is the most important part Of accordion HTML CSS only. We have given more importance to CSS accordion animation. You can use this section in the FAQs section. It is the most important part of ours website. We have used a CSS glowing effects animation because they need high effects.

😍😍 If You like this video Please like, share and subscribe This video.😍😍

😍😍 Check Others Programming Video👇

➡️ Awesome CSS Search Box Using Only HTML & CSS: https://www.youtube.com/watch?v=_wejZceWDVg

➡️ Responsive website html css javascript | part( 1 ): https://www.youtube.com/watch?v=g0ART2Jc3yw&t=3s

➡️ Creative CSS Loading Animations Effects | 2021: https://www.youtube.com/watch?v=xiuEi_QkY54

➡️ CSS Clip Path Hover Circle Hover Effects: https://www.youtube.com/watch?v=cRSgoViJdR0

➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021: https://www.youtube.com/watch?v=QVMJ5PdX7Ag&t=14s

➡️ Neon Light Button Animation Effects on Hover | CSS Snake Border: https://www.youtube.com/watch?v=GtVSF-efdJQ&t=102s

➡️ Responsive Box Model Web Design Using CSS Flexbox: https://www.youtube.com/watch?v=03RuVB6B5KQ

➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript: https://www.youtube.com/watch?v=6A6HpxMmfX4

➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021: https://www.youtube.com/watch?v=43FbR6ailIk&t=28s

➡️Scroll top button : https://www.youtube.com/watch?v=9fDEJkXQIIs&t=77s

➡️ Animated eid mubarak 2021 using Html CSS & Javascript: https://www.youtube.com/watch?v=60H2gt3klZU

➡️ Responsive Countdown Timer using Html CSS & vanilla Javascript: https://www.youtube.com/watch?v=7UQL5ZYI_F8&t=16s

Here is all Source code. You can follow this steps:

  1. Create 1 folder
  2. create 1 HTML file: index.html
  3. create 1 CSS file: style.css
  4. copy HTML code and pest HTML file, copy CSS code and past CSS file
  5. Now give a smile and jump out loud. 😍😍
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Accordion</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="container">
    <img src="img.jpg" alt="" class="image">
    <div class="according-menu">
      <div class="item" id="item1">
        <a href="#item1" class="title">
          <span>Lorem ipsum dolor sit amet.</span>
          <i class="icon"></i>
        </a>
        <p class="text">
          Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex itaque voluptatum sed ratione ullam eligendi consequuntur possimus atque deleniti! Sapiente.
        </p>
      </div>
      <div class="item" id="item2">
        <a href="#item2" class="title">
          <span>Lorem ipsum dolor sit amet.</span>
          <i class="icon"></i>
        </a>
        <p class="text">
          Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex itaque voluptatum sed ratione ullam eligendi consequuntur possimus atque deleniti! Sapiente.
        </p>
      </div>
      <div class="item" id="item3">
        <a href="#item3" class="title">
          <span>Lorem ipsum dolor sit amet.</span>
          <i class="icon"></i>
        </a>
        <p class="text">
          Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex itaque voluptatum sed ratione ullam eligendi consequuntur possimus atque deleniti! Sapiente.
        </p>
      </div>
      <div class="item" id="item4">
        <a href="#item4" class="title">
          <span>Lorem ipsum dolor sit amet.</span>
          <i class="icon"></i>
        </a>
        <p class="text">
          Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex itaque voluptatum sed ratione ullam eligendi consequuntur possimus atque deleniti! Sapiente.
        </p>
      </div>
      <div class="item" id="item5">
        <a href="#item5" class="title">
          <span>Lorem ipsum dolor sit amet.</span>
          <i class="icon"></i>
        </a>
        <p class="text">
          Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex itaque voluptatum sed ratione ullam eligendi consequuntur possimus atque deleniti! Sapiente.
        </p>
      </div>
      
    </div>
  </div>
</body>
</html>
* {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  background: url(bg.jpg) no-repeat center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1200px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.image,
.according-menu {
  width: calc(50% - 20px);
}

.title {
  background: #e77f67;
  display: flex;
  color: #fff;
  padding: 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
}
.icon {
  position: relative;
  width: 14px;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 3px;
  background: #fff;
  top: -1.5px;
}
.icon::after {
  transform: rotate(90deg);
  transition: 0.4s linear;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -webkit-transition: 0.4s linear;
  -moz-transition: 0.4s linear;
  -ms-transition: 0.4s linear;
  -o-transition: 0.4s linear;
}

.text {
  background: #ffffff60;
  color: #fff;
  line-height: 26px;
  margin: 6px 0;
  opacity: 0;
  height: 0;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

.item:target .text {
  height: auto;
  opacity: 1;
  padding: 20px;
  margin: 12px 0;
}
.item:target .icon::after {
  transform: rotate(0);
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
}

@media (max-width: 960px) {
  .container {
    width: 600px;
  }
  .image, .according-menu{
    width: 100%;
    margin: 20px 0;
  }
}

You can Download free image in Unsplash

Don’t Forget to Follow me on all Social Network,

YouTube: https://www.youtube.com/channel/UCw9etYfx-25oKB_qt1fFNWw

Facebook Page: Coding BD – https://www.facebook.com/codingbd2021

LinkedIn: https://www.linkedin.com/in/sajjat-hossain-0617961b1/

GitHub: https://github.com/cgsaleh8383

Social media Icon is the most important pert of our website. User can visited your website on your social media icon.

here some attractive social media design: Creative Transition Icon Hover Effects

#codingbd #accordingMenu #htmlcssJavascript

Related Posts

Leave a Reply

Your email address will not be published.