Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emranweb/328b95a24afc0495bdfb9ac4146257b9 to your computer and use it in GitHub Desktop.
Save emranweb/328b95a24afc0495bdfb9ac4146257b9 to your computer and use it in GitHub Desktop.
Bootstrap4 Before after icon. Then the accordian is hide it show one icon after when it expend it show after icon. It use Font awesome 5 Icon.
#accordion .btn:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f106";
float: right;
}
/************************/
#accordion .btn.collapsed:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f107";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment