Skip to content

Instantly share code, notes, and snippets.

@lucasmazza
Created August 28, 2018 00:19
Show Gist options
  • Save lucasmazza/6d2086039ed0ef25bd7d94bb37e53dbf to your computer and use it in GitHub Desktop.
Save lucasmazza/6d2086039ed0ef25bd7d94bb37e53dbf to your computer and use it in GitHub Desktop.
Slide up menu
/**
* Slide up menu
*/
.thing {
box-sizing: border-box;
position: absolute;
bottom: 0;
left: calc(50% - 200px);
height: 50px;
width: 400px;
border: 1px solid #000;
border-bottom: none;
border-radius: 5px 5px 0 0;
padding: 20px;
transition: height .5s ease-in-out;
}
.thing.is-expanded {
height: 90vh;
}
<div class="thing">
<button onClick="this.parentElement.classList.toggle('is-expanded');">ohai</button>
<div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment