Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.menu {
overflow: hidden;
}
/* Enable scroll on hover */
.menu:hover {
overflow: auto;
}
/* Enable scroll on focus */
.menu:focus-within {
overflow: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment