Awesome Accordion Menu Using Only HTML & CSS

Awesome Accordion Menu Using Only HTML & CSS

Coding BD given here 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. We have used a css glowing effects animation because they need high effects. Thank you so much.

Create a Payoneer Account & Earn 25$:→  https://www.payoneer.com/raf/?rid=75EACA0E-2937-4D6B-A225-4255EB9B758A 

Create a Fiverr Account & Earn 100$:→ http://www.fiverr.com/s2/83f49a18f7 

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

😍😍 Check Others Programming Video👇

➡️How To Create Login Form In HTML and CSS: https://www.youtube.com/watch?v=51t-kR8MUvY 

➡️ contact page design with map using html css: https://www.youtube.com/watch?v=RC2-bq4fBYI 

➡️  Pure sliding tabs using html and css: https://www.youtube.com/watch?v=QonCizKyHrs

➡️ Animated Background Image Loop Animation: https://www.youtube.com/watch?v=7HyTFr5kNSU&t=284s 

➡️  water wave background animation effects: https://www.youtube.com/watch?v=dnCfBet94r8&t=49s 

➡️ How to Download Source code in Coding BD: https://www.youtube.com/watch?v=WXAZ-BScKBE&t=3s  

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

➡️ Responsive Services Section:  https://www.youtube.com/watch?v=wvLkyrkoS_w&t=69s 

➡️ Plane animation only html css: https://www.youtube.com/watch?v=XcYlfp8sFX0 

➡️ 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&t=0s 

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

➡️ 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 

Source code here: ( Awesome Accordion Menu Using Only HTML & CSS )

<!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;
  }
}

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

Facebook Page: https://www.facebook.com/codingbd816 

LinkedIn: https://www.linkedin.com/in/sajjat8383/ 

Instagram: https://www.instagram.com/codingbd/ 
GitHub: https://github.com/cgsaleh8383

You can see How to create a light to dark mode for HTML CSS & Vanilla Javascript

Leave a Comment

Your email address will not be published.