<div class="page area">
<ul class="circles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<span class="menu_toggle">
<button class="menu">
<svg viewBox="0 0 64 48">
<path d="M19,15 L45,15 C70,15 58,-2 49.0177126,7 L19,37"></path>
<path d="M19,24 L45,24 C61.2371586,24 57,49 41,33 L32,24"></path>
<path d="M45,33 L19,33 C-8,33 6,-2 22,14 L45,37"></path>
</svg>
</button>
</span>
<div class="menu_items">
<ul class="menu_hidden">
<li data-text="Home"><a href="">Home</a></li>
<li data-text="About"><a href="#">About</a></li>
<li data-text="Services"><a href="#">Services</a></li>
<li data-text="Portfolio"><a href="#">Portfolio</a></li>
<li data-text="Team"><a href="#">Team</a></li>
<li data-text="Contact"><a href="#">Contact</a></li>
</ul>
</div>
<!-- ========== End SideBar ========== -->
<!-- ========== Start Home ========== -->
<main class="content">
<canvas id="tableau" class="tableau"></canvas>
<div class="content_inner">
<section class="home" id="home">
<div class="container">
<h1>Awesome Menu</h1>
<h2>Click on the menu button</h2>
<h3><a href="https://github.com/MedRedha">Follow me =D</a></h3>
</div>
</section>
</div>
</main>
</div>
@import url("https://fonts:googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap");
* {
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
margin: 0;
padding: 0;
}
body {
font-family: "Poppins";
background-color: #323232;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 15px;
/* height: 100vh; */
/* overflow: hidden; */
}
h1,
h2,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
a,
a:hover,
a:focus,
a:active {
color: #fff;
text-decoration: none;
}
/*=========== Typography ============*/
h1 {
font-size: 80px;
font-weight: 800;
}
h2 {
font-size: 50px;
font-weight: 600;
}
h3 {
font-size: 30px;
font-weight: 600;
margin-top: 200px;
}
h4 {
font-size: 18px;
font-weight: 400;
}
h5 {
font-size: 16px;
font-weight: 400;
}
h6 {
font-size: 15px;
font-weight: 400;
}
/*=========== Main Classes ============*/
.main-title {
margin-bottom: 60px;
position: relative;
display: inline-block;
}
.main-title h2 {
color: #fff;
text-transform: uppercase;
font-weight: 600;
font-size: 28px;
letter-spacing: 0.7px;
line-height: 1;
margin: 0;
padding-bottom: 15px;
}
.main-title h2:before {
content: "";
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background-color: #6d6b6f;
}
.main-title span {
position: absolute;
bottom: -9px;
left: 67%;
line-height: 1;
background: #323232;
padding: 0 4px;
font-size: 20px;
color: #16c0f0;
font-weight: 600;
letter-spacing: 0.3px;
}
.display-table {
display: table;
width: 100%;
}
.display-table-cell {
display: table-cell;
vertical-align: middle;
height: 100vh;
min-height: 100%;
}
.main-btn {
position: relative;
display: inline-block;
min-width: 145px;
background: #16c0f0;
color: #fff;
padding: 14px 0;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
text-align: center;
border: none;
border-radius: 24px;
outline: none;
overflow: hidden;
z-index: 2;
}
.main-btn:before {
content: "";
background: linear-gradient(135deg, #319be6 0%, #16c0f0 100%);
position: absolute;
top: 50%;
left: 50%;
display: block;
width: 100%;
height: 100%;
border-radius: 24px;
z-index: -1;
-webkit-transform: translate(-50%, -50%) scale(0);
-moz-transform: translate(-50%, -50%) scale(0);
-o-transform: translate(-50%, -50%) scale(0);
-ms-transform: translate(-50%, -50%) scale(0);
transform: translate(-50%, -50%) scale(0);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
}
.main-btn:hover:before {
-webkit-transform: translate(-50%, -50%) scale(1);
-moz-transform: translate(-50%, -50%) scale(1);
-o-transform: translate(-50%, -50%) scale(1);
-ms-transform: translate(-50%, -50%) scale(1);
transform: translate(-50%, -50%) scale(1);
}
.btn-flip {
opacity: 1;
outline: 0;
color: #fff;
line-height: 40px;
position: relative;
text-align: center;
letter-spacing: 1px;
display: inline-block;
text-decoration: none;
text-transform: uppercase;
}
.btn-flip:hover:after {
opacity: 1;
transform: translateY(0) rotateX(0);
}
.btn-flip:hover:before {
opacity: 0;
transform: translateY(50%) rotateX(90deg);
}
.btn-flip:after {
top: 0;
left: 0;
opacity: 0;
width: 100%;
color: #16c0f0;
display: block;
transition: 0.5s;
position: absolute;
background: white;
font-family: "Bold";
border-radius: 20px;
content: attr(data-back);
transform: translateY(-50%) rotateX(90deg);
}
.btn-flip:before {
top: 0;
left: 0;
opacity: 1;
color: white;
display: block;
padding: 0 30px;
font-family: "Bold";
line-height: 40px;
transition: 0.5s;
position: relative;
background: #16c0f0;
border-radius: 20px;
content: attr(data-front);
transform: translateY(0) rotateX(0);
}
/* Liquid Button */
.btn-liquid {
display: flex;
justify-content: center;
flex-direction: row;
position: absolute;
width: 200px;
height: 50px;
border-radius: 27px;
letter-spacing: 0.05em;
align-content: center;
text-align: center;
text-decoration: none;
text-transform: uppercase;
font-family: "Bold";
line-height: 40px;
}
@media screen and (min-width: 601px) {
.btn-liquid {
font-size: 18px;
}
}
/* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
@media screen and (max-width: 600px) {
.btn-liquid {
font-size: 16px;
}
}
.btn-liquid .innerbtn {
display: flex;
justify-content: center;
flex-direction: row;
top: 5px;
text-align: center;
width: fit-content;
height: fit-content;
position: relative;
z-index: 2;
}
.btn-liquid canvas {
position: absolute;
top: -50px;
right: -50px;
bottom: -50px;
left: -50px;
z-index: 1;
}
/* --------------------------------------
2. Loading
-----------------------------------------*/
.preloader {
position: fixed;
top: 0;
left: 0;
background-color: #323232;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 999999999;
opacity: 1;
}
.loading-overlay {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.loading-inner {
display: inline-block;
height: 60px;
width: 60px;
padding: 0px;
}
.loading-inner span {
width: 60px;
height: 60px;
position: absolute;
display: inline-block;
border-radius: 100%;
background: #16c0f0;
-webkit-animation: preloading 1.6s linear infinite;
animation: preloading 1.6s linear infinite;
}
.loading-inner span:last-child {
animation-delay: -0.6s;
-webkit-animation-delay: -0.6s;
}
@keyframes preloading {
0% {
transform: scale(0, 0);
opacity: 0.6;
}
100% {
transform: scale(1, 1);
opacity: 0;
}
}
@-webkit-keyframes preloading {
0% {
-webkit-transform: scale(0, 0);
opacity: 0.6;
}
100% {
-webkit-transform: scale(1, 1);
opacity: 0;
}
}
/* --------------------------------------
3. Navbar
-----------------------------------------*/
.navbar {
background: rgba(50, 50, 50, 0.2);
position: absolute;
top: 0;
left: 0;
width: 100%;
border: none;
margin-bottom: 0;
padding-top: 10px;
padding-bottom: 10px;
z-index: 999;
}
.navbar.active-nav {
position: fixed;
background: #323232;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .menu-toggle {
position: relative;
padding: 10px 0;
float: right;
z-index: 2;
background: transparent;
border: none;
outline: none;
cursor: pointer;
display: none;
}
.navbar .menu-toggle .bar {
display: block;
width: 28px;
height: 2px;
background-color: #16c0f0;
}
.navbar .menu-toggle .bar:first-child {
width: 14px;
margin-right: 14px;
}
.navbar .menu-toggle .bar:nth-child(2) {
margin: 6px 0;
}
.navbar .menu-toggle .bar:last-child {
width: 14px;
margin-left: 14px;
}
.navbar.menu-active .menu-toggle {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.navbar.menu-active .menu-toggle .bar:first-child,
.navbar.menu-active .menu-toggle .bar:last-child {
-webkit-transform: rotate(-90deg) translateY(7px);
-moz-transform: rotate(-90deg) translateY(7px);
-ms-transform: rotate(-90deg) translateY(7px);
-o-transform: rotate(-90deg) translateY(7px);
transform: rotate(-90deg) translateY(7px);
margin-right: 0;
margin-left: 0;
}
.navbar .navbar-brand {
position: relative;
height: auto;
font-size: 22px;
font-weight: 600;
text-transform: capitalize;
letter-spacing: 1px;
color: #fff !important;
padding: 10px 0;
}
.navbar .navbar-brand span {
color: #16c0f0;
}
.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus {
color: #fff;
font-weight: 600;
padding: 10px 12px;
letter-spacing: 0.5px;
text-transform: capitalize;
}
.navbar .navbar-nav > li > a.active {
color: #16c0f0;
font-weight: 600;
}
/*=========== Vertical Navigation ============*/
.vertical-nav .toggle-menu {
position: fixed;
top: 15px;
left: 15px;
padding: 10px 0;
z-index: 2;
background: transparent;
border: none;
outline: none;
cursor: pointer;
z-index: 999999;
}
.vertical-nav .toggle-menu .bar {
display: block;
width: 28px;
height: 2px;
background-color: #16c0f0;
}
.vertical-nav .toggle-menu .bar:first-child {
width: 14px;
margin-right: 14px;
}
.vertical-nav .toggle-menu .bar:nth-child(2) {
margin: 6px 0;
}
.vertical-nav .toggle-menu .bar:last-child {
width: 14px;
margin-left: 14px;
}
.vertical-nav.open .toggle-menu {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.vertical-nav.open .toggle-menu .bar:first-child,
.vertical-nav.open .toggle-menu .bar:last-child {
-webkit-transform: rotate(-90deg) translateY(7px);
-moz-transform: rotate(-90deg) translateY(7px);
-ms-transform: rotate(-90deg) translateY(7px);
-o-transform: rotate(-90deg) translateY(7px);
transform: rotate(-90deg) translateY(7px);
margin-right: 0;
margin-left: 0;
}
.vertical-nav .mini-menu {
position: fixed;
top: 0;
left: -100%;
bottom: 0;
width: 60px;
z-index: 99999;
margin: auto;
background-color: #323232;
border-right: 2px solid #383636;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 85px 10px;
}
.vertical-nav.open .mini-menu {
left: 0;
}
.vertical-nav .mini-menu li {
display: block;
width: 40px;
height: 40px;
}
.vertical-nav .mini-menu li a {
position: relative;
display: block;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
border-bottom: 1px solid #383636;
background: #292929;
}
.vertical-nav .mini-menu li:last-child a {
border: 1px solid transparent;
}
.vertical-nav .mini-menu li a.active,
.vertical-nav .mini-menu li a:hover {
background: linear-gradient(135deg, #319be6 0%, #16c0f0 100%);
color: #fff;
}
.vertical-nav li a:before {
content: attr(data-name);
position: absolute;
top: 50%;
left: 60px;
display: block;
background-color: #16c0f0;
color: #fff;
text-transform: capitalize;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.5px;
line-height: 10px;
padding: 10px 15px;
border-radius: 4px;
z-index: 999999;
-webkit-animation: nameAnimate 0.6s both;
animation: nameAnimate 0.6s both;
display: none;
}
.vertical-nav li a:after {
content: "";
position: absolute;
top: 50%;
left: 47px;
display: block;
border: 7px solid;
border-color: transparent #16c0f0 transparent transparent;
z-index: 999999;
-webkit-animation: nameAnimate 0.6s both;
animation: nameAnimate 0.6s both;
display: none;
}
.vertical-nav li a:hover:before,
.vertical-nav li a:hover:after {
display: block;
}
@-webkit-keyframes nameAnimate {
0% {
-webkit-transform: translate(-30px, -75%);
-moz-transform: translate(-30px, -75%);
-ms-transform: translate(-30px, -75%);
-o-transform: translate(-30px, -75%);
transform: translate(-30px, -75%);
opacity: 0;
}
100% {
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
transform: translate(0, -50%);
opacity: 1;
}
}
@keyframes nameAnimate {
0% {
-webkit-transform: translate(-30px, -75%);
-moz-transform: translate(-30px, -75%);
-ms-transform: translate(-30px, -75%);
-o-transform: translate(-30px, -75%);
transform: translate(-30px, -75%);
opacity: 0;
}
100% {
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
transform: translate(0, -50%);
opacity: 1;
}
}
/* --------------------------------------
4. Home
-----------------------------------------*/
.demo {
display: inline-block;
margin: 0 1em 0.5em 0;
padding: 0 0 0.25em;
}
.demo--current {
border-color: transparent;
color: var(--link-hover-color);
pointer-events: none;
}
.content {
overflow: hidden;
padding: 0;
}
#scene.clickable {
cursor: pointer;
}
.main {
--background-color: #381e6f;
--link-color: #d7b5fc;
--link-hover-color: #cbfaf2;
}
.home {
/* background: url('../images/home.jpg') center center no-repeat fixed; */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
position: relative;
height: 100vh;
overflow: hidden;
--background-color: #381e6f;
--link-color: #d7b5fc;
--link-hover-color: #cbfaf2;
}
.home .overlay {
background-color: rgba(43, 42, 47, 0.315);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.home .intro h3 {
color: #c3c0c0;
font-family: "Poppins";
font-size: 22px;
font-weight: 600;
text-transform: capitalize;
letter-spacing: 1px;
}
.home .intro h1 {
color: #fff;
font-size: 85px;
margin: 30px 0;
text-transform: capitalize;
line-height: 1;
letter-spacing: 2px;
}
.home .intro p {
color: #c3c0c0;
font-size: 22px;
font-weight: 600;
text-transform: capitalize;
letter-spacing: 1px;
margin: 0;
margin-bottom: 50px;
}
.home .intro p span {
color: #16c0f0;
}
.home .arrow {
position: absolute;
bottom: 80px;
right: 30px;
font-size: 18px;
color: #fff;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.home .arrow a {
position: relative;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.home .arrow a:before {
content: "\f100";
font-family: "FontAwesome";
position: absolute;
top: -6px;
left: -19px;
font-size: 23px;
-webkit-animation: arrowmoving 0.9s linear infinite;
animation: arrowmoving 0.9s linear infinite;
}
@keyframes arrowmoving {
0% {
-webkit-transform: translateX(0px);
-ms-transform: translateX(0px);
-o-transform: translateX(0px);
transform: translateX(0px);
}
50% {
-webkit-transform: translateX(-8px);
-ms-transform: translateX(-8px);
-o-transform: translateX(-8px);
transform: translateX(-8px);
}
100% {
-webkit-transform: translateX(0px);
-ms-transform: translateX(0px);
-o-transform: translateX(0px);
transform: translateX(0px);
}
}
.edge {
font-size: 0.65em;
position: fixed;
bottom: 0;
right: 0;
width: 100%;
padding: 1.5em;
display: none;
align-items: center;
flex-wrap: wrap;
background: var(--background-color-3);
z-index: 1000;
}
.edge,
.edge:hover {
color: #fff;
}
.edge::after {
letter-spacing: 0.05em;
content: "";
text-transform: uppercase;
font-size: 0.7em;
position: absolute;
top: 0.35em;
right: 0.5em;
opacity: 0.5;
letter-spacing: 0.085em;
z-index: -1;
}
.edge__deco {
display: none;
}
.edge__img {
display: inline-block;
width: 100%;
max-width: 160px;
position: relative;
margin: 0 1em 0 0;
}
.edge__title {
display: inline-block;
text-transform: uppercase;
letter-spacing: 0.05em;
position: relative;
}
.edge:hover .edge__title {
opacity: 0%;
}
.edge__desc {
display: none;
}
/* GitHub corner */
.github-corner {
position: absolute;
top: 0;
right: 0;
opacity: 70%;
}
.github-corner:hover .octo-arm {
opacity: 100%;
animation-play-state: paused;
}
.github-corner__svg {
fill: #222223;
color: #ffffff;
position: absolute;
top: 0;
border: 0;
right: 0;
}
.github-corner .octo-arm {
animation-play-state: running;
animation: octocat-wave 560ms ease-in-out;
animation-iteration-count: 70000;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
/*
@media (max-width: 500px) {
.github-corner__svg:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
} */
@media screen and (max-width: 600px) {
.edge {
text-align: right;
top: 0;
bottom: auto;
width: auto;
padding: 3em 1.5em 0 0;
display: block;
font-size: 0.85em;
background: transparent;
}
.ball-one,
.ball-two,
.ball-three,
.ball-four,
.ball-five,
.ball-six,
.ball-seven,
.ball-eight {
display: none;
width: 0;
height: 0;
opacity: 0;
}
.edge__deco,
.edge__img,
.edge__desc,
.edge__title {
display: none;
}
}
@media screen and (min-width: 601px) {
.edge {
text-align: right;
top: 0;
bottom: auto;
width: auto;
padding: 3em 1.5em 0 0;
display: block;
font-size: 0.85em;
background: transparent;
}
.edge::after {
top: 1.5em;
right: 1.5em;
left: auto;
font-size: 0.85em;
}
.edge__title {
display: block;
position: fixed;
right: 20px;
margin-top: 0.4em;
margin-right: -0.5em;
transform: rotate(45deg);
font-weight: 50;
font-size: 14px;
}
.edge__desc {
display: block;
color: #fff;
position: relative;
width: 40px;
height: 40px;
opacity: 0;
transform: translate3d(0, -10px, 0);
transition: opacity 0.3s, transform 0.3s;
}
.edge__img {
max-width: 200px;
width: auto;
margin: 0;
}
.edge:hover .edge__desc {
opacity: 1;
transform: translate3d(0, 0, 0);
transition-delay: 0.2s;
}
.edge__deco {
display: block;
position: absolute;
top: 0;
right: 0;
fill: #222223;
opacity: 70%;
filter: blur(2px);
transform: translate3d(100%, -100%, 0) rotate3d(0, 0, 1, 40deg)
scale3d(1, 0.2, 1);
transition: transform 0.5s ease-out;
}
.edge:hover .edge__deco {
transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
border-color: #fff;
}
}
/* Shake Animation */
@-webkit-keyframes hvr-buzz-out {
10% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
20% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
30% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
40% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
50% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
60% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
70% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
80% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
90% {
-webkit-transform: translateX(1px) rotate(0);
transform: translateX(1px) rotate(0);
}
100% {
-webkit-transform: translateX(-1px) rotate(0);
transform: translateX(-1px) rotate(0);
}
}
@keyframes hvr-buzz-out {
10% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
20% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
30% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
40% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
50% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
60% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
70% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
80% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
90% {
-webkit-transform: translateX(1px) rotate(0);
transform: translateX(1px) rotate(0);
}
100% {
-webkit-transform: translateX(-1px) rotate(0);
transform: translateX(-1px) rotate(0);
}
}
.hvr-buzz-out {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-buzz-out:hover,
.hvr-buzz-out:focus,
.hvr-buzz-out:active {
-webkit-animation-name: hvr-buzz-out;
animation-name: hvr-buzz-out;
-webkit-animation-duration: 0.75s;
animation-duration: 0.75s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}
/*Social buttons animations*/
.ball-one {
right: 115px;
top: 15px;
position: fixed;
filter: grayscale();
}
.ball-one:hover,
.ball-two:hover,
.ball-three:hover,
.ball-four:hover,
.ball-five:hover,
.ball-six:hover,
.ball-seven:hover,
.ball-eight:hover {
filter: none;
}
.ball-two {
position: fixed;
top: 20px;
right: 220px;
filter: grayscale();
}
.ball-three {
position: fixed;
top: 75px;
right: 165px;
filter: grayscale();
}
.ball-four {
right: 105px;
top: 110px;
position: fixed;
filter: grayscale();
}
.ball-five {
position: fixed;
top: 100px;
right: 240px;
filter: grayscale();
}
.ball-six {
position: fixed;
top: 140px;
right: 170px;
filter: grayscale();
}
.ball-seven {
position: fixed;
top: 160px;
right: 40px;
filter: grayscale();
}
.ball-eight {
width: 50px;
height: 50px;
position: fixed;
top: 70px;
right: 40px;
filter: grayscale();
}
/* SIDE MENU */
.menu {
--color: #fff;
width: 36px;
height: 36px;
padding: 0;
margin: 0;
outline: none;
position: fixed;
left: 20px;
top: 20px;
border: none;
background: none;
cursor: pointer;
-webkit-appearence: none;
-webkit-tap-highlight-color: transparent;
}
.menu svg {
width: 64px;
height: 48px;
top: -6px;
left: -14px;
stroke: var(--color);
stroke-width: 4px;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
display: block;
position: absolute;
}
.menu svg path {
-webkit-transition: stroke-dasharray var(--duration, 0.85s)
var(--easing, ease) var(--delay, 0s),
stroke-dashoffset var(--duration, 0.85s) var(--easing, ease)
var(--delay, 0s);
transition: stroke-dasharray var(--duration, 0.85s) var(--easing, ease)
var(--delay, 0s),
stroke-dashoffset var(--duration, 0.85s) var(--easing, ease)
var(--delay, 0s);
stroke-dasharray: var(--array-1, 26px) var(--array-2, 100px);
stroke-dashoffset: var(--offset, 126px);
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.menu svg path:nth-child(2) {
--duration: 0.7s;
--easing: ease-in;
--offset: 100px;
--array-2: 74px;
}
.menu svg path:nth-child(3) {
--offset: 133px;
--array-2: 107px;
}
.menu.active svg path {
--offset: 57px;
}
.menu.active svg path:nth-child(1),
.menu.active svg path:nth-child(3) {
--delay: 0.15s;
--easing: cubic-bezier(0.2, 0.4, 0.2, 1.1);
}
.menu.active svg path:nth-child(2) {
--duration: 0.4s;
--offset: 2px;
--array-1: 1px;
}
.menu.active svg path:nth-child(3) {
--offset: 58px;
}
.area {
display: flex;
justify-content: center;
align-items: center;
background: #0f0c29; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#24243e,
#302b63,
#0f0c29
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#24243e,
#302b63,
#0f0c29
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
width: 100%;
height: 100vh;
}
.circles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.circles li {
position: absolute;
display: block;
list-style: none;
width: 20px;
height: 20px;
background: rgba(255, 255, 255, 0.2);
animation: animate 25s linear infinite;
bottom: -150px;
}
.circles li:nth-child(1) {
left: 25%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.circles li:nth-child(2) {
left: 10%;
width: 20px;
height: 20px;
animation-delay: 2s;
animation-duration: 12s;
}
.circles li:nth-child(3) {
left: 70%;
width: 20px;
height: 20px;
animation-delay: 4s;
}
.circles li:nth-child(4) {
left: 40%;
width: 60px;
height: 60px;
animation-delay: 0s;
animation-duration: 18s;
}
.circles li:nth-child(5) {
left: 65%;
width: 20px;
height: 20px;
animation-delay: 0s;
}
.circles li:nth-child(6) {
left: 75%;
width: 110px;
height: 110px;
animation-delay: 3s;
}
.circles li:nth-child(7) {
left: 35%;
width: 150px;
height: 150px;
animation-delay: 7s;
}
.circles li:nth-child(8) {
left: 50%;
width: 25px;
height: 25px;
animation-delay: 15s;
animation-duration: 45s;
}
.circles li:nth-child(9) {
left: 20%;
width: 15px;
height: 15px;
animation-delay: 2s;
animation-duration: 35s;
}
.circles li:nth-child(10) {
left: 85%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 11s;
}
@keyframes animate {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
100% {
transform: translateY(-1000px) rotate(720deg);
opacity: 0;
border-radius: 50%;
}
}
.page {
height: 100%;
background: -webkit-linear-gradient(to right, #242424, #000c40);
}
.content {
height: 100%;
width: 200vw;
transform-origin: top left;
transition: transform 0.7s cubic-bezier(1, 0.005, 0.24, 1);
background-color: transparent;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.content_inner {
height: 50%;
overflow-y: auto;
/* padding: 50px 20%; */
}
.menu_toggle {
z-index: 900;
position: fixed;
top: 0;
left: 0;
display: block;
cursor: pointer;
width: 100px;
height: 80px;
background-color: transparent;
opacity: 0.5;
border-bottom-right-radius: 100%;
}
.menu_toggle:active i {
opacity: 0.8;
}
.menu_toggle i {
color: #f0f0f0;
}
.menu_toggle .menu_open,
.menu_toggle .menu_close {
position: absolute;
top: 50%;
left: 50%;
margin-top: -15px;
margin-left: -12px;
transition: transform 0.7s cubic-bezier(1, 0.005, 0.24, 1);
}
.menu_toggle .menu_open {
transform-origin: -100px -100px;
}
.menu_toggle .menu_close {
transform: rotate(20deg);
transform-origin: -100px -160px;
}
.menu_items {
font-family: "Poppins";
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
position: fixed;
width: fit-content;
height: fit-content;
}
.menu_hidden {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: fit-content;
height: fit-content;
}
.menu_items li {
list-style-type: none;
}
@media screen and (min-width: 601px) {
.menu_items li:before {
content: attr(data-text);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 8em;
font-family: "Poppins";
font-weight: 900;
pointer-events: none;
opacity: 0;
letter-spacing: 20px;
transition: 0.5%;
white-space: nowrap;
}
.menu_items li:nth-child(1):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(2):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(3):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(4):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(5):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(6):before {
top: 1.5em;
left: 50%;
}
}
@media screen and (max-width: 600px) {
.menu_items li:before {
content: attr(data-text);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 6em;
font-family: "Poppins";
font-weight: 900;
pointer-events: none;
opacity: 0;
letter-spacing: 20px;
transition: 0.5%;
white-space: nowrap;
}
.menu_items li:nth-child(1):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(2):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(3):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(4):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(5):before {
top: 1.5em;
left: 50%;
}
.menu_items li:nth-child(6):before {
top: 1.5em;
left: 50%;
}
}
.menu_items li:hover:before {
opacity: 0.05;
letter-spacing: 0px;
}
.menu_items li a {
position: relative;
display: inline-block;
padding: 6px 15px;
text-decoration: none;
background: transparent;
color: #fff;
text-transform: uppercase;
letter-spacing: 2px;
overflow: hidden;
transition: 0.5s;
z-index: 1;
font-size: 26px;
}
.menu_items:hover li a {
opacity: 0;
}
.menu_items li a:hover {
transform: scale(1.4);
z-index: 1000;
background: #ff3f81;
opacity: 1;
}
.menu_items li a:before {
content: "";
position: absolute;
top: 0;
left: -100px;
width: 80px;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.8),
transparent
);
transform: skewX(35deg);
transition: 0s;
}
.menu_items li a:hover:before {
left: calc(100% + 100px);
transition: 0.5%;
transition-delay: 0.2s;
}
.menu_items a .icon {
position: relative;
display: inline-block;
margin-right: 25px;
color: #f0f0f0;
}
.menu_items a .icon:after {
position: absolute;
top: 50%;
left: 50%;
content: "";
display: block;
width: 60px;
height: 60px;
margin-left: -33px;
margin-top: -32px;
border-radius: 100%;
border: 2px solid #f0f0f0;
transition: border-color 0.2s;
}
.menu_items a:hover {
color: #f0f0f0;
}
.menu_items a:hover .icon:after {
border-color: #f37272;
}
.menu_items a:active .icon {
color: #f37272;
}
/* Let's open up the menu */
.shazam {
/*.content_inner {
height: 100%;
}
*/
}
.shazam .content {
transform: rotate(-90deg);
}
.shazam .menu_open {
transform: rotate(-20deg);
}
.shazam .menu_close {
transform: rotate(0);
}
.shazam .menu_items li {
transform: translateX(0);
transition: transform 0.35s 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.shazam .menu_items li:nth-child(2) {
transition-delay: 0.47s;
}
.shazam .menu_items li:nth-child(3) {
transition-delay: 0.48s;
}
.tableau {
background-image: url(https://img5.goodfon.com/wallpaper/nbig/b/dd/4k-ultra-hd-background-blur-stems-leaves-autumn-close-up-red.jpg);
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
filter: blur(5px);
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
color: white;
top: 30%;
}
// elements
var $page = $('.page');
$('.menu_toggle').on('click', function() {
$page.toggleClass('shazam');
});
$('.content').on('click', function() {
$page.removeClass('shazam');
});
</script>
<script>
document.querySelectorAll('.menu').forEach((btn) => {
btn.addEventListener('click', (e) => {
btn.classList.toggle('active');
});
});
This Pen doesn't use any external CSS resources.