Skip to content
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

Hide all content by default with display: none #75

Open
philbuchanan opened this issue Nov 22, 2018 · 0 comments
Open

Hide all content by default with display: none #75

philbuchanan opened this issue Nov 22, 2018 · 0 comments
Labels

Comments

@philbuchanan
Copy link
Owner

This will remove the flash of seeing all accordion item's content when the page is loading. Then swap the plugin to openItem() instead of closeItem() on load.

Use the no-js CSS class to force them open in CSS:

.no-js .c-accordion__content {
    display: block !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant