mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-27 12:19:56 +00:00
Add accordion animation with js
This commit is contained in:
@@ -50,31 +50,6 @@ details.accordion>.accordion-content {
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
|
||||
@keyframes open {
|
||||
0% {
|
||||
opacity: 0
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
/* closing animation */
|
||||
@keyframes close {
|
||||
0% {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0
|
||||
}
|
||||
}
|
||||
|
||||
details[open].accordion>summary~* {
|
||||
animation: open 700ms;
|
||||
}
|
||||
|
||||
details::not([open]).accordion>summary~* {
|
||||
animation: open 700ms;
|
||||
details.accordion {
|
||||
transition: max-height 300ms ease-in-out;
|
||||
}
|
Reference in New Issue
Block a user