Scroll top to button | Responsive website html css javascript

Scroll top button Responsive website html css javascript

Coding BD given here Scroll top to button | Responsive website html css javascript. Our creative back to top smooth scroll javascript step by step is the most important part Of Scroll top button. We created a smooth scroll to top and built a complete Responsive website html css javascript. We have given more importance to the smooth scroll to top. We have used jquery effects because they need high effects. Thank you so much.

😍😍 If You like this video Please like, share and subscribe This video.😍😍

😍😍 Check Others Programming Video👇

➡️ creative button hover effects:

➡️ How to Download Source code in Coding BD:

➡️Responsive website html css javascript | part( 1 ):…

➡️ Responsive Services Section:…

➡️ CSS Clip Path Hover Circle Hover Effects:…

➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021:…

➡️ Neon Light Button Animation Effects on Hover | CSS Snake Border:…

➡️ Responsive Box Model Web Design Using CSS Flexbox:…

➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript:…

➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021:…

➡️Scroll top button :…

➡️ Animated eid mubarak 2021 using Html CSS & Javascript:…

Here is all Source code ( Scroll top to button ). You can follow this steps:

  1. Create 1 folder
  2. create 1 HTML file: index.html
  3. create 1 CSS file: style.css
  4. copy HTML code and pest HTML file, copy CSS code and past CSS file
  5. Now give a smile and jump out loud. 😍😍
<!DOCTYPE html>
<html lang="en">

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src=""></script>
  <link rel="stylesheet" href="style.css">
  <title>Back To Top</title>


  <section class="section1">Section 1</section>
  <section class="section2">Section 2</section>
  <section class="section3">Section 3</section>
  <section class="section4">Section 4</section>

  <a href="#" class="to-top">
    <i class="fas fa-chevron-up"></i>

  <script src="main.js"></script>

* {
  margin: 0;
  padding: 0;

html {
  scroll-behavior: smooth;

section {
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 8px;

.section1 {
  background: #f0932b;

.section2 {
  background: #eb4d4b;

.section3 {
  background: #7ed6df;

.section4 {
  background: #22a6b3;

.to-top {
  background: white;
  position: fixed;
  bottom: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #1f1f1f;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
} {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
const toTop = document.querySelector(".to-top");

window.addEventListener("scroll", () => {
  if (window.pageYOffset > 100) {
  } else {

Don’t Forget to Follow me on all Social Network


Facebook Page:



You can see Loader| Creative CSS Animation Effects

Related Posts

Leave a Reply

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