2 Versions of an accordion
5/5 - (1 vote)
2 Versions of an accordion
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
font-weight: bold; /* Adjust font weight: normal, bold, or numeric values like 400, 700 */
}
selector .e-n-accordion-item-title-text:hover {
background-color: #A0D467; /* Lighter shade for hover */
color: #FFFFFF; /* Change text color on hover */
border-color: #387002; /* Darker border on hover */
transform: scale(1.05); /* Slightly enlarge on hover */
}
selector .e-n-accordion-item-title-text:active {
background-color: #8CBD5A; /* Even darker shade for active */
color: #FFFFFF; /* Maintain contrast */
border-color: #285001; /* Darker border for active state */
transform: scale(0.98); /* Slightly shrink on active */
}
selector .e-n-accordion-item-title[aria-expanded="true"] {
display: none;
}
selector .e-n-accordion-item-title {
border: none;
}
@media only screen and (min-width: 767px) and (max-width: 1024px) {
selector .e-n-accordion-item-title-text {
padding: 1em 3em;
!important;
}
}
No Additional HTML Required