How to easily build an accordion using JavaScript, Html & CSS

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 5

  • @lukas.webdev
    @lukas.webdev Год назад

    Great Video! 🔥😉

  • @LovelyAndyy
    @LovelyAndyy Год назад

    I've tried making my own accordian plenty of times and always find the flashing/jumping when opening one div and closing the other to be very obnoxious to deal with. Your accordion animation only happens on open, not close. I think this could definitely be improved, but is a good starter lesson for people I think, albiet not the most "clean" version that can be made.
    Love the content variety though, keep up the good work!

    • @sumitupadhyay6377
      @sumitupadhyay6377 Год назад

      add style in accordian height transition : height. 5s linear;
      this will work i think

    • @LovelyAndyy
      @LovelyAndyy Год назад

      @@sumitupadhyay6377 nah, that doesnt do it. It's not an issue I'm reall concerned with anymore, but it does seem to be overlooked in most of these types of how-to videos. The second you try stacking things around it as well, the more the issue sticks out.
      I'm sure anyone who watches this and attempts to implement it in their own projects will run into the same issues.