Add files via upload
BIN
100_projects/88-animated-website-bubble/images/Thumbs.db
Normal file
BIN
100_projects/88-animated-website-bubble/images/background.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
100_projects/88-animated-website-bubble/images/bubble.png
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
100_projects/88-animated-website-bubble/images/fb.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
100_projects/88-animated-website-bubble/images/ig.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
100_projects/88-animated-website-bubble/images/info.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
100_projects/88-animated-website-bubble/images/logo.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
100_projects/88-animated-website-bubble/images/menu.png
Normal file
After Width: | Height: | Size: 336 B |
BIN
100_projects/88-animated-website-bubble/images/share.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
100_projects/88-animated-website-bubble/images/tw.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
52
100_projects/88-animated-website-bubble/index.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
<div class="container">
|
||||
<div class="navbar">
|
||||
<div>
|
||||
<img src="images/bubble.png" class="logo">
|
||||
<span>Water</span>
|
||||
</div>
|
||||
<button type="button" class="btn">Sing up</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Welcome to our</p>
|
||||
<h1>World's <br> Creative Studio</h1>
|
||||
<button>Take A Tour</button>
|
||||
</div>
|
||||
<div class="side-bar">
|
||||
<img src="images/menu.png" class="menu">
|
||||
<div class="social-links">
|
||||
<img src="images/fb.png">
|
||||
<img src="images/ig.png">
|
||||
<img src="images/tw.png">
|
||||
</div>
|
||||
<div class="useful-links">
|
||||
<img src="images/share.png">
|
||||
<img src="images/info.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bubbles">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
<img src="images/bubble.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
211
100_projects/88-animated-website-bubble/style.css
Normal file
@ -0,0 +1,211 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
|
||||
*{
|
||||
margin:0;
|
||||
padding:0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.container {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 10px;
|
||||
}
|
||||
/* Small */
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 750px;
|
||||
}
|
||||
}
|
||||
/* Medium */
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 970px;
|
||||
}
|
||||
}
|
||||
/* Large */
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
width: 1170px;
|
||||
}
|
||||
}
|
||||
.hero{
|
||||
width:100%;
|
||||
height: 100vh;
|
||||
background-image: url("images/background.png");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.logo{
|
||||
width: 100px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.navbar{
|
||||
width: 85%;
|
||||
height: 15%;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:space-between;
|
||||
}
|
||||
.hero .navbar div{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.hero .navbar div img{
|
||||
width: 60px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.hero .navbar div span{
|
||||
color: #fbfcfd;
|
||||
font-size: 25px;
|
||||
font-weight: 600;
|
||||
margin-left: -30px;
|
||||
font-family: 'Shadows Into Light', cursive;
|
||||
}
|
||||
button{
|
||||
color: #fbfcfd;
|
||||
padding: 10px 25px;
|
||||
font-size: 16px;
|
||||
background: transparent;
|
||||
border: 3px double #fff;
|
||||
border-radius: 20px;
|
||||
outline: none;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover{
|
||||
background-color:rgba(255, 255, 255, .5)
|
||||
}
|
||||
.content{
|
||||
color: #fbfcfd;
|
||||
position: absolute;
|
||||
top:50%;
|
||||
left:8%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 2;
|
||||
}
|
||||
h1{
|
||||
font-size: 80px;
|
||||
margin: 10px 0 30px;
|
||||
line-height: 80px;
|
||||
}
|
||||
/*@media*/
|
||||
@media(max-width:767px){
|
||||
h1{
|
||||
font-size: 34px;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
.side-bar{
|
||||
width: 50px;
|
||||
height: 100vh;
|
||||
background: linear-gradient(#00545d, #000729);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
}
|
||||
.menu{
|
||||
display: block;
|
||||
width:25px;
|
||||
margin: 40px auto 0;
|
||||
cursor: pointer;
|
||||
transition: .3s;
|
||||
}
|
||||
.menu:hover{
|
||||
border-radius: 50%;
|
||||
background-color:rgba(255, 255, 255, .3);
|
||||
}
|
||||
.social-links img, .useful-links img{
|
||||
width:35px;
|
||||
margin: 5px auto;
|
||||
transition: .3s;
|
||||
cursor: pointer;
|
||||
}
|
||||
.social-links img:hover, .useful-links img:hover{
|
||||
background-color:rgba(255, 255, 255, .3);
|
||||
border-radius: 50%;
|
||||
}
|
||||
.social-links{
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top:50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.useful-links{
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
bottom: 30px;
|
||||
}
|
||||
.bubbles{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
.bubbles img{
|
||||
width: 50px;
|
||||
opacity: 0;
|
||||
animation: bubble 7s linear infinite;
|
||||
}
|
||||
.bubbles img:nth-child(1){
|
||||
animation-delay: 2s;
|
||||
}
|
||||
.bubbles img:nth-child(2){
|
||||
animation-delay: 1s;
|
||||
width: 25px;
|
||||
}
|
||||
.bubbles img:nth-child(3){
|
||||
animation-delay: 3s;
|
||||
}
|
||||
.bubbles img:nth-child(4){
|
||||
animation-delay: 4.5s;
|
||||
width: 40px
|
||||
}
|
||||
.bubbles img:nth-child(5){
|
||||
animation-delay: 3s;
|
||||
}
|
||||
.bubbles img:nth-child(6){
|
||||
animation-delay: 6s;
|
||||
width: 30px;
|
||||
}
|
||||
.bubbles img:nth-child(7){
|
||||
animation-delay: 7s;
|
||||
}
|
||||
.bubbles img:nth-child(8){
|
||||
animation-delay: 10s;
|
||||
width: 25px;
|
||||
}
|
||||
.bubbles img:nth-child(9){
|
||||
animation-delay: 1s;
|
||||
width: 80px;
|
||||
}
|
||||
.bubbles img:nth-child(10){
|
||||
animation-delay: 5s;
|
||||
width: 20px
|
||||
}
|
||||
@keyframes bubble{
|
||||
0%{
|
||||
transform: translateY(0);
|
||||
opacity: 0;
|
||||
}
|
||||
50%{
|
||||
opacity: 1;
|
||||
}
|
||||
70%{
|
||||
opacity: 1;
|
||||
}
|
||||
100%{
|
||||
transform: translateY(-80vh);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|