Skip to content

Commit

Permalink
Added animation to accordion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsprds committed May 12, 2017
1 parent 17f8f49 commit 923eb1a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/styles/molecules/_molecules.accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
}

.m-accordion__content {
display: block;
border-bottom: 1px solid $accordion-border;
max-height: 500px;
}
}
}
Expand Down Expand Up @@ -55,9 +56,12 @@

.m-accordion__content {
background-color: $accordion-content-bg;
border-bottom: 1px solid $accordion-border;
border-left: 1px solid $accordion-border;
border-right: 1px solid $accordion-border;
display: none;
padding: $accordion-content-padding;
display: block;
overflow: auto;
max-height: 0;
transition: max-height .5s ease-out;
padding: 0;
border-bottom: 0;
}

0 comments on commit 923eb1a

Please sign in to comment.