Add files via upload

This commit is contained in:
Sam 2023-04-26 20:10:22 +03:00 committed by GitHub
parent 07d770ed75
commit b27eb69698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 261 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Glassmorphism Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>
<header>
<a href="#" class="logo">Water Wave.</a>
<div class="toggle" onclick="menuToggle();"></div>
</header>
<div class="glass"></div>
<div class="content">
<h2>Hapiness...<br><span>Crystal clear ocean water.</h2>
</div>
<video src="images/rain.mp4"autoplay muted loop></video>
<ul class="sci">
<li style="--i:1"><a href="#">Snapchat</a></li>
<li style="--i:2"><a href="#">Twitter</a></li>
<li style="--i:3"><a href="#">Instgram</a></li>
</ul>
<ul class="navigation">
<li style="--i:1"><a href="#">Home</a></li>
<li style="--i:2"><a href="#">About</a></li>
<li style="--i:3"><a href="#">Tour</a></li>
<li style="--i:4"><a href="#">Contact</a></li>
</ul>
</section>
<script type="text/javascript">
function menuToggle(){
const toggleMenu = document.querySelector('.toggle');
const section = document.querySelector('section');
toggleMenu.classList.toggle('active')
section.classList.toggle('active')
}
</script>
</body>
</html>

View File

@ -0,0 +1,220 @@
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
*{
margin:0;
padding:0;
box-sizing:border-box;
}
section{
position: relative;
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items:center;
overflow: hidden;
}
header{
position: absolute;
top: 0;
left:0;
width: 100%;
padding: 40px 100px;
z-index: 100;
display: flex;
justify-content:space-between;
align-items: center;
}
header .logo{
position: relative;
font-size: 2em;
color: #fff;
text-transform: uppercase;
font-weight: 700;
text-decoration: none;
text-shadow: 2px 2px 0 rgba(0, 0, 0, .1);
transition: .5s;
}
header .toggle{
position: relative;
width: 40px;
height: 40px;
background:url(images/menu.png);
background-position: center;
background-repeat: no-repeat;
background-size: 30px;
cursor: pointer;
display: flex;
align-items: center;
}
header .toggle.active{
background:url(images/close.png);
background-position: center;
background-repeat: no-repeat;
background-size: 20px;
cursor: pointer;
}
header .toggle::before{
content: 'Menu';
position: absolute;
right: 45px;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 14px;
padding: 2px 5px;
background-color: #fff;
color: #111;
}
header .toggle.active::before{
content: 'Close';
}
section video{
position:absolute;
top:0;
left:0;
width: 100%;
height: 100%;
object-fit: cover;
}
.glass{
position: absolute;
top:0;
left:0;
width: 40%;
height: 100%;
z-index: 1;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
-o-backdrop-filter: blur(15px);
-moz-backdrop-filter: blur(15px);
box-shadow: 10px 0 15px rgba(0, 0, 0, .5);
transition: .5s;
transition-delay: 1s;
}
section.active .glass{
width: 100%;
backdrop-filter: blur(20px);
transition-delay: 0s;
}
section .content{
position: relative;
z-index: 10;
text-align: center;
transition: .5s;
transition-delay: 1s;
}
section.active .content{
opacity: 0;
visibility: hidden;
transform: translateX(-200px);
transition-delay: 0s;
}
section .content h2{
position: relative;
color: #fff;
font-size: 10vw;
line-height: 0.55;
text-shadow: 0 5px 5px rgba(0, 0, 0, .2);
font-family: 'Dancing Script', cursive;
}
section .content h2 span{
font-size: 0.2em;
font-weight: 300;
letter-spacing: 5px;
background: #fff;
color: #111;
padding: 0 10px;
text-shadow: 0 5px 5px rgba(0, 0, 0, .2);
box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
text-transform: uppercase;
}
section .sci{
position: absolute;
bottom: 40px;
right: 100px;
display: flex;
z-index: 100;
}
section .sci li{
list-style: none;
margin: 5px;
padding: 0 6px;
background: #fff;
color: #111;
transition: .5s;
transition-delay: calc(.1s * var(--i));
}
section.active .sci li{
opacity: 0;
visibility: hidden;
transform: translateY(100px);
}
section .sci li a {
color: #111;
text-decoration: none;
display: inline-block;
letter-spacing: 2px;
font-weight: 500;
font-size:12px;
text-transform: uppercase;
}
section .navigation{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%, -50%);
z-index: 100;
}
section .navigation li {
list-style:none;
text-align: center;
margin: 15px 0;
opacity: 0;
visibility: hidden;
transition: .5s;
transform: translateX(200px);
transition-delay: calc(.1s * var(--i));
}
section.active .navigation li{
opacity: 1;
visibility: visible;
transform: translateX(0);
}
section .navigation li a{
color:#111;
font-size: 1.5em;
letter-spacing: 4px;
text-decoration: none;
font-weight: 300;
text-transform: uppercase;
background-color: #fff;
padding: 4px 10px;
display: inline-block;
transition: .3s;
}
section .navigation li a:hover{
background: #111;
color: #fff;
letter-spacing: 10px;
text-transform: lowercase;
}
@media (max-width:991px){
header{
padding: 20px;
}
section .sci{
bottom: 20px;
right: 20px;
}
.glass{
width: 60%;
}
section .content h2{
font-size: 16vh;
}
section .content h2 span{
font-size: .22em;
letter-spacing: 2px;
padding: 0 5px;
}
}