Corner popout menu with options
Pops out a corner menu from the bottom right with options
by ericbaumann
HTML
<span>Click the Orange Menu</span>
<div class="container">
<div class="circle left"></div>
<div class="circle middle"></div>
<div class="circle right"></div>
<div class="menu"></div>
</div>
CSS
.container {
position: fixed;
bottom: 0;
right: 0;
height: 250px;
width: 215px;
}
.menu {
position: absolute;
bottom: 0;
right: 0;
background-color: orange;
height:50px;
width: 50px;
//border-radius: 150px 0 0 0;
transition: all .3s ease;
}
.expanded .menu {
height:150px;
width: 150px;
//border-radius: 150px 0 0 0;
transition: all .3s ease;
}
.circle {
background-color:black;
height:50px;
width:50px;
border-radius: 75px;
position: absolute;
background-color: #ccc;
}
.circle {
visibility:hidden;
opacity:0;
transition:visibility .2s linear 0s, opacity 0.2s linear;
}
.expanded .circle {
visibility: visible;
opacity: 1;
transition: all .2s linear;
}
.circle.left {
bottom: 0;
left: 5px;
}
.circle.middle {
bottom: 105px;
left: 55px;
}
.circle.right {
top: 40px;
right: 0;
}
JavaScript
$('.menu').click(function () {
$('.container').toggleClass('expanded');
});