Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Common
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
* {
 box-sizing: border-box;
}

body {
 margin: 0px;
}

img {
 max-width: 100%;
}

/**Typeo CSS End**/
.floating-menu, .floating-menu * {
 --page-width: 1250px;
 --base-fm: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
 --title-size: 40px;
 --base-size: 14px;
 --base-clr: #3f3f3f;
 --white-clr: #ffffff;
 --black-clr: #000000;
 --theme-clr: #ee2824;
}

.floating-menu {
 position: fixed;
 bottom: 50px;
 left: 30px;
 font-family: var(--base-fm);
 font-size: var(--base-size);
 color: var(--white-clr);
}

.floating-show {
 width: 40px;
 height: 40px;
 border-radius: 100%;
 padding: 8px;
 background: var(--theme-clr);
 display: inline-block;
 cursor: pointer;
}

.floating-list {
 position: absolute;
 bottom: 50%;
 left: 0px;
 transition: 0.5s all;
 pointer-events: none;
 opacity: 0;
}

.floating-list .flt-text {
 position: absolute;
 left: 10%;
 background-color: #dcdcdc;
 color: var(--theme-clr);
 padding: 5px 15px 5px 30px;
 line-height: normal;
 white-space: nowrap;
 font-weight: 500;
 border-radius: 30px 20px 20px 30px;
 z-index: -1;
 min-height: 40px;
 display: flex;
 align-items: center;
 transition: 0.5s all;
 opacity: 0;
}

.floating-list a {
 position: relative;
 background-color: var(--theme-clr);
 width: 40px;
 height: 40px;
 display: flex;
 flex-flow: row wrap;
 align-items: center;
 justify-content: center;
 margin: 10px 0px;
 border-radius: 100%;
 padding: 10px;
}

.floating-list a:hover .flt-text {
 opacity: 1;
 left: 50%;
 border-radius: 0px 10px 10px 0px;
}

.floating-menu:hover .floating-list {
 opacity: 1;
 pointer-events: auto;
 bottom: 100%;
}

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *