This is an example of a collapsible accordion, designed using CSS, HTML, and Bootstrap framework 4. The form is designed to reveal the hidden text in a panel, on a button click. The form consists of six panels. An accordion button with the data-target attribute has been used to implement the collapsible feature of the accordion by using the data-toggle="collapse". The expanded panel is given a background color as #4385f5, and line-height as 24px. The non-expanded panel has the styles of color as #999999, background-color as #fff, display as block, padding as 12px 20px. The content section of the expanded panel is given a text size of 14px, whereas the expanded panel title is given a font-size as 16px. When expanded, the color of the text gets changed to #fff. The content section of the expanded panel is also given the styles of font-family as 'FontAwesome, width, and height as 21px, display as block, border-radius as 50% and text-align as center. Source: https://bbbootstrap.com/snippets/awesome-accordian-collapse-blue-93531626
This is an example of a collapsible menu layout, designed using HTML, CSS, JavaScript, and Bootstrap framework 4. JavaScript has been used to implement the expanding function of the menu. The fonts are imported to the code with the URL. The concept of Lists has been used with UL and LI components. UL element has been used with the child elements of LI to display the menu items in an orderly manner. The body of the form is given the styles of color as #444246, background as linear-gradient(to bottom, #dd879f 0%,#4e337e 100%), font-family as 'Open Sans', sans-serif, and padding as 10% 0 0 40%. The text is given a text-transform style as uppercase to automatically convert the text to uppercase, and also the cursor style as pointer to get the hand cursor effect in a hover event. The menu list items are given the styles of display as block, min-height as 48px, font-weight as bold, font-size as 0.76em, position as relative, and border-bottom as 1px solid rgba(255,255,255,0.1), which takes the background color of #3ed8b5, in a hover event. Source: https://codepen.io/chrisota/pen/hkAFm