Categories: Uncategorized

Create Scrolling Effect Using CSS and HTML

Create How to Create Scrolling effect using HTML and CSS Only from scratch.

     

Output :

Output

Download Images :

Image 1 –



Image 2 –

<!DOCTYPE html>
<html>
<head>
 <title>Website Design</title>
<style type="text/css">
 
 *{
 margin: 0px;
 padding: 0px;
}

body{
 font-family: sans-serif;
}


div{
 height: 1000px;
}

.img-1{
 background: url("file:///C:/Users/HP-Pavilion/Desktop/img-1.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}


.img-2{
 background: url("file:///C:/Users/HP-Pavilion/Desktop/img-2.jpg");
    background-attachment: fixed;
    background-size: cover;
        background-position: center;
}


/* Creating section Now */
.sec{
 height: auto;
 background-color: black;
 padding: 50px;
}

h1{
 color: white;
 text-align: center;
 font-size: 21px;
}

form{
 text-align: center;
 padding: 20px;
}

/*Designing Input Box */
input{
 font-size: 21px;
 padding: 5px;
 border-radius: 5px;
 outline: none;
 border: none;
}

button{
 font-size: 21px;
 padding: 5px;
 border-radius: 5px;
 outline: none;
 border: none;
 background-color: red;
 transition: .3s;
}

button:hover{
 background-color: tomato;
}


/*Creating Menu */
nav{
 background-color: #ffffff42;
 position: fixed;
 width: 100%;

}

ul{
 list-style: none;
}

li{
 display: inline-block;
 padding: 20px;
 transition: .3s;
}

li:hover{
 background-color: white;
}

</style>
</head>
<body>

<nav>
 <ul>
<li>Home</li>
<li>Contact</li>
<li>About Us</li>
</ul>
</nav>


<div class="img-1">
</div>
<div class="sec">
 
<h1>
Hey My name is Rajeev... Whats Your Name ?</h1>
<form>
 <input type="text" name="username" placeholder="Enter Your Name">

 <button>Subscribe</button>
</form>
</div>
<div class="img-2">
</div>
</body>
</html>

reecry

View Comments

Recent Posts

Insta360 – Videos keep exporting backwards | Wrong side render in insta360

https://youtu.be/0RRUOIvmuWA I realized that I had my camera set up incorrectly, so when I upload…

9 months ago

Make Animated progress step bar using Figma

https://youtu.be/C3oFfV20K_c Make Animated progress step bar using Figma

11 months ago

How to Hide All Grids in Figma

https://youtu.be/o3pSH_oRzko How to Hide All Grids in Figma

11 months ago

How to Create Responsive Tool tip in figma

https://youtu.be/hdSUylKSsho How to Create Responsive Tool tip in Figma

11 months ago

Pixel Grid not visible in figma | How to Turn on figma Pixel Grid

https://youtu.be/AEiH7dSDhKo Having issue in figma pixel grid? learn how to show/ hide figma pixel grid…

11 months ago

Fix External Monitor Lag on Mac OS Ventura

https://youtu.be/iilYzHg9LwQ There are some issues going on in ventura OS its still in development phase…

2 years ago