Skip to content

Add CSS transitions for revealing FAQ answers #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/assets/css/_css/faq.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,30 @@
opacity: 0;
margin-bottom: 0;
margin-top: 0;
display: none;
overflow: hidden;
transition: height 0ms 400ms, opacity 400ms 0ms;

&.show {
opacity: 1;
max-height: 800px;
margin-bottom: 1.0875rem;
display: block;
overflow: visible;
transition: height 0ms 0ms, opacity 600ms 0ms;
}
}

p {
max-height: 0;
opacity: 0;
margin: 0;
display: none;
overflow: hidden;
transition: height 0ms 400ms, opacity 400ms 0ms;

&.show {
opacity: 1;
max-height: 400px;
margin-bottom: 1.0875rem;
display: block;
transition: height 0ms 0ms, opacity 600ms 0ms;
}
}
}