Pure CSS Smooth Scrolling Animation With Just 1 Line of Code

Поделиться
HTML-код
  • Опубликовано: 5 июн 2024
  • In this tutorial, we will learn how to add "Pure CSS Smooth Scrolling Animation With Just 1 Line of Code". Want to be creative? Then watch this tutorial till the end.
    Adding smooth scrolling in a website is now compulsory. Because it will make your website more professional and user friendly. And we can add smooth scrolling in our website using just CSS only. And we don't have to write a bunch of code. We just have to write only one line of code in CSS. And its too simple.
    #Smooth_Scrolling #Smooth_Scrolling_CSS
    Create animated website(Tutorial), which we have discussed in
    0:00 Intro
    0:27 Create Fully Professional Responsive Animated Website Using HTML & CSS
    • Responsive Animated We...
    All Source Codes: www.buymeacoffee.com/tech2etc
    Github: github.com/tech2etc
    ⛔❌Do Not CLICK This Link: bit.ly/3lJLyLY
    Need any help? Join my Discord: / discord
    SUPPORT ME:
    👕 Merchandise: tech2etc.com/merchandise
    🎁 Buy Me A Coffee www.buymeacoffee.com/tech2etc
    🎀 Donate Me By Paypal: www.paypal.com/paypalme/tech2etc
    How To Make MONEY Online - My 4 Favorite Tricks:
    👨‍💻 Start Freelancing: tech2etc.com/fiverrcpa
    🛒 Learn Digital Marketing: tech2etc.com/digital-marketing
    📹 Make Video Editing As Profession: tech2etc.com/video-editing
    🕔 Next trick will be revealed at the right time.
    Free Course to Improve SKILLS & EARN:
    1️⃣ WordPress Insider: tech2etc.com/wordpress-course
    2️⃣ Bootstrap With Projects: tech2etc.com/bootstrap
    3️⃣ Web Development For Beginners: tech2etc.com/webdev
    4️⃣ JavaScript With Projects: tech2etc.com/javascript
    5️⃣ Python With Projects: tech2etc.com/python
    🎁 Get Certificate: courses.tech2etc.com/
    Important Links:
    📂 Best Hosting: tech2etc.com/best-hosting
    📂 Best CV Resume: tech2etc.com/my-resume
    📂 Freelancing Guide: tech2etc.com/learn-freelancing
    📂 Interview Questions: tech2etc.com/?s=interview
    DISCLAIMER: This description contains affiliate links. Which means I may receive a small commission on affiliate links used. This helps support the channel and allows us to continue to make videos like this. All content used within the parameters of fair use.
    ===============================
    Connect with me & get daily updates👇
    ===============================
    Discord: / discord
    Instagram: / fahimulkabir.tech2etc
    Twitter: / tech2etc
    LinkedIn: / fahimulkabirchowdhury
    FB (Personal): / md.fahimkabirhamim
    FB Page: / tech2etc
    FB Group: / 2424642430907565
    ------------------------------Track-------------------------
    Music provided by : NoCopyrightSounds
    Watch: www.youtube.com/watch?v=q1ULJ...
    Free Download / Stream: ncs.io/feelgood

Комментарии • 194

  • @Tech2etc
    @Tech2etc  2 года назад +24

    Hey Guys! Please support me 💪
    Please Help Me to Reach 200K SUBSCRIBERS Goal 🙏

    • @gleanfact8318
      @gleanfact8318 2 года назад

      I subscribed

    • @farazedits8060
      @farazedits8060 2 года назад

      Hello Sir!!
      I want full tutorial of this website but the link that you had given in the description is working.
      Hope you'll help me.

    • @Tech2etc
      @Tech2etc  2 года назад +1

      @@farazedits8060 ok i Will update that link in a moment. In the meanwhile please do checkout that video in the channel.

    • @vanhelsingx69x
      @vanhelsingx69x 2 года назад

      gotcha bro

    • @vidhijainn2718
      @vidhijainn2718 Год назад

      can you please share me the full video of this video

  • @mr.incognito8426
    @mr.incognito8426 3 года назад +47

    Just one piece of code made me wonder how everyone's website is so beautiful, now i'm getting the point . Just one line code made it awesome . Thankyou bhai

  • @Deix25
    @Deix25 2 года назад +42

    This is exactly what I was looking for! Thank you so much for the tutorial.

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Glad it was helpful!

    • @Asha0224
      @Asha0224 2 года назад +1

      I was also searching this for two days..... Finally got it thank you sir 😊

  • @Indeed007
    @Indeed007 2 года назад +8

    ..thx bud! Literally had no idea! ..Huge difference it makes, and very very simple too, wow. I've been developing for a while now and somewhat an experienced user but literally had no idea about this. Thank you again bro! 👍

  • @songpitou5831
    @songpitou5831 2 года назад +4

    I literally spent 1hr trying to find this. Thank you man, god bless you!!

    • @Tech2etc
      @Tech2etc  2 года назад

      Glad you liked it

    • @MrBonbatong
      @MrBonbatong 2 года назад

      same for me, the whole afternoon!

  • @warrengaytero1682
    @warrengaytero1682 3 года назад +8

    i never skip the ads because its the only way i can thank you..keep growing GodBless

    • @Tech2etc
      @Tech2etc  3 года назад +1

      Thanks a lot♥😂

  • @MrBonbatong
    @MrBonbatong 2 года назад +3

    I've been looking for this line code for the whole day! Thanks for sharing

  • @mophgaming7312
    @mophgaming7312 8 месяцев назад +1

    Thank You Man! I have found what i have been looking for! U earn a VERY GREAT SUB!!!

  • @GuilhermeRibeirodeSouza92
    @GuilhermeRibeirodeSouza92 Год назад

    Awesome! I was looking for this, thank you!!
    A simple thing that makes a great diference!

  • @erich2s_0103
    @erich2s_0103 2 года назад +1

    Wow, that amazing!! just pure css!

  • @krstev29
    @krstev29 2 года назад +1

    Thanks you very much. I needed the smooth scrolling thing for a school project and i didn't know how to do it. I am definetilly liking

    • @Tech2etc
      @Tech2etc  2 года назад

      Your very welcome

  • @SacredSadhaka
    @SacredSadhaka 2 года назад +2

    I was searching for it like hell dude, Thx a ton for this 🙏🙏🙏

  • @elitism3783
    @elitism3783 Год назад +6

    //This is all what you need :
    html {
    Scroll-behavior :smooth ;
    }

  • @arnabsaha8436
    @arnabsaha8436 2 года назад +3

    It's amazing. Just one line code and the magic. Thank you Tech2 etc.

  • @AyshaBlogsStuff
    @AyshaBlogsStuff 2 года назад

    First the smooth scroll didnt work for me but then i realized i didnt turn on my watch sass! thank you so much, worked perfectly

    • @Tech2etc
      @Tech2etc  2 года назад

      Great.. Carry on

  • @pavithraselvaraj8919
    @pavithraselvaraj8919 2 года назад +1

    thank you so much🙇‍♀️ its seriously helped me alot 😭💕 im able to finished my project🥳

  • @naitikbhavsar4195
    @naitikbhavsar4195 Год назад

    It's amazing. Just one line code and the magic

  • @kbotman5228
    @kbotman5228 3 года назад +2

    OMG dude you are genius! Thank you so much bro , you deserve more subs

  • @ebohbliss167
    @ebohbliss167 7 месяцев назад

    This is exactly what i needed
    God bless you❤❤

  • @nadianoversega2301
    @nadianoversega2301 2 года назад

    Thankyou very much for this video. Helps me a lot as I am jus started learning. Many respect for you!! 🙏🏻🙏🏻

  • @bpratikvinod8110
    @bpratikvinod8110 Год назад

    Love you bhai, yahi search kar raha tha kabse

  • @danangwic
    @danangwic 2 года назад +2

    finally i found this one, thank u sir for this useful videos!

  • @swibay
    @swibay 2 года назад

    Man you are awesome! Much love from Tanzania

    • @Tech2etc
      @Tech2etc  2 года назад

      Thank you my friend

  • @seeker3794
    @seeker3794 Год назад

    Your explanation is just what feel mine👍

  • @DeanT.
    @DeanT. Год назад

    Thank you sir! Bless you

  • @AdonaiChristopher-vo5qj
    @AdonaiChristopher-vo5qj Год назад

    You've just earned a subscriber

  • @user-jl1hl5vo6s
    @user-jl1hl5vo6s 8 месяцев назад

    Bro you solved my a big problem , I wanted to scroll down my page directly and other youtubers were fucking messing up with JS and didnt tell me to just give id name of perticular div with id dymbol ! , love you bro !1

  • @codewithatharv
    @codewithatharv Год назад

    Thanks man!

  • @adonis8130
    @adonis8130 Год назад

    Thankyou soo much

  • @sfusergroupkhi
    @sfusergroupkhi 3 года назад +1

    Great as usual💓

  • @mehmetsahzengin1974
    @mehmetsahzengin1974 2 месяца назад

    I appreciate it bro

  • @gleanfact8318
    @gleanfact8318 2 года назад

    Exactly I am looking for these totorial
    Thanks a lot

  • @ProtechBD1
    @ProtechBD1 Год назад

    That's Great!!

  • @WaesEnvi
    @WaesEnvi Год назад

    thankkss brooo!

  • @harshmirdhwal
    @harshmirdhwal 2 года назад

    You are so great, Thank YOU !! so much

  • @digitalution
    @digitalution Год назад

    Awesome just one line :)

  • @ayenewyihune
    @ayenewyihune Год назад

    You save me lots of time, thanks

    • @Tech2etc
      @Tech2etc  Год назад +1

      Your most welcome. Please share this project on your social media. Will appreciate that.

  • @berylsam889
    @berylsam889 2 года назад +1

    Thanks for the tutorial. I just had a doubt, what did you code for the divs to fade in, every time you had visited a section in the page?

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Have a full tutorial on that. Tutorial link given in the description.

    • @codefoxes
      @codefoxes 2 года назад +1

      data-aos="fade-up"

    • @codefoxes
      @codefoxes 2 года назад +1

      add this to your html wherever you wanted

  • @alreadydestroyed4838
    @alreadydestroyed4838 Год назад

    Thanks alot sir 💜

  • @-mr.random-7837
    @-mr.random-7837 2 года назад

    Thank you Sir ! It's worked

  • @TK-wp3iw
    @TK-wp3iw Год назад

    thanks 😄

  • @shreyapakhare4303
    @shreyapakhare4303 2 года назад

    Simply amazing brother

  • @marcelee124
    @marcelee124 2 года назад

    Thank you so much!

  • @user-sl9lr7en6k
    @user-sl9lr7en6k Год назад

    thanks bro

  • @mofarih
    @mofarih 2 года назад

    thank you sooooo much!

  • @waasanime2335
    @waasanime2335 Год назад

    THANK YOU !

    • @Tech2etc
      @Tech2etc  Год назад

      Your most welcome. Please share this project on your social media. Will appreciate that.

  • @monkyout
    @monkyout Год назад

    Thanks sir.

  • @tuvshin666
    @tuvshin666 Год назад

    i finding this so long :D

  • @TLopez341
    @TLopez341 2 года назад

    Thank you!

  • @davicunda6736
    @davicunda6736 2 года назад

    thank you bro!!!!

  • @Emotion_Mystery
    @Emotion_Mystery Год назад +6

    Bro ,you can not tell the whole concept of image how your image was animated up to down 😔😔😔😔😔😔😔😔

    • @KS_Studioz
      @KS_Studioz 5 месяцев назад

      Aos animation library

  • @animeku4812
    @animeku4812 Год назад +1

    what is the name of the transition you used in the video ?
    like transition card

  • @priyanshluthra3842
    @priyanshluthra3842 2 года назад +1

    Thanku bro :)

  • @hojaifahossain4269
    @hojaifahossain4269 2 года назад

    Thanks Bro.

  • @felixamantillo7870
    @felixamantillo7870 2 года назад

    I knew it❤️💖

  • @indieshd
    @indieshd 2 года назад

    wow! nice tutorial bro

  • @b_arts8073
    @b_arts8073 2 года назад

    Thank you so much

  • @bigmggaming3146
    @bigmggaming3146 Год назад

    thank you

    • @Tech2etc
      @Tech2etc  Год назад

      Your most welcome. Please share this project on your social media. Will appreciate that.

  • @adrianosantos1970
    @adrianosantos1970 3 года назад +3

    Muito bom

  • @HairyBosnian03
    @HairyBosnian03 3 года назад

    THANK YOU

  • @aalaeytb
    @aalaeytb Год назад

    helpful ❤

  • @avgGamer662
    @avgGamer662 Год назад

    Thanks Bhai

  • @omarmahmoud8904
    @omarmahmoud8904 2 года назад

    Thanks a lot

  • @Developersdiaries
    @Developersdiaries 5 месяцев назад

    thnks for hellping
    🎉🎉

  • @user-lc7qs7gy5d
    @user-lc7qs7gy5d День назад

    And here i am thinking is something new , Yes those who do not know about much scrolling will be wonder but ! video can be 30Sec also , bro try to make 30sec short vid and see viral

  • @rafael7425
    @rafael7425 3 года назад

    thanks man

  • @yz1915
    @yz1915 2 месяца назад

    hey friend. Many thanks for that but i've got small problem that on my website appears a black dot on a left top corner after adding # for scroll
    Many thanks!

  • @arsheonix5893
    @arsheonix5893 2 года назад

    His voice is like soul mortal

  • @eduardoguedes6760
    @eduardoguedes6760 2 года назад

    Thanksssssss

  • @shyamprakashm6325
    @shyamprakashm6325 3 года назад

    When you scroll the website how do that div boxes comes relative to scroll? Which animation are you using?

    • @Tech2etc
      @Tech2etc  3 года назад

      WATCH the Tutorial.... link given in the top right i button & also in the description

    • @mohammedjunaihd8556
      @mohammedjunaihd8556 3 года назад +1

      It's a jquery

    • @AdityaRaj-lj5wf
      @AdityaRaj-lj5wf Год назад +1

      it's in js file a property called "offset" decides that.

  • @michaelpinkrah4439
    @michaelpinkrah4439 Год назад

    Hello, how would I take a page like this and make it multiple separate pages.

  • @anshab123
    @anshab123 2 года назад

    Thanks bro

  • @karolpetruczenko5805
    @karolpetruczenko5805 2 года назад

    thx bro

  • @footballxeditz7475
    @footballxeditz7475 Год назад

    thanks

    • @Tech2etc
      @Tech2etc  Год назад

      You're welcome!
      More projects are coming soon.
      Please share this project on your social media. It will help us. Thanks.

  • @user-po3ms7wk8o
    @user-po3ms7wk8o 10 месяцев назад

    how do you make a sticky nav bar please i need to know how to do it

  • @11valdano
    @11valdano 3 года назад +4

    The scrolling is not the same on the finished site compared to the one you "coded".

    • @Tech2etc
      @Tech2etc  3 года назад +1

      Yes, i gave that video tutorial also in the card.

  • @TaiNguyen-mi4tn
    @TaiNguyen-mi4tn 2 года назад

    love u

  • @dhruvjoshi1986
    @dhruvjoshi1986 Год назад

    Bro I have one issue with this , When I click on Contact button than it scroll down ok, but than i reload the web page at that time they direct open contact section .
    please solve this error..

  • @shashikantm9135
    @shashikantm9135 Год назад

    Super sir please make video on how to host website live 🙏

    • @Tech2etc
      @Tech2etc  Год назад

      Please check on our channel. We have already created some tutorials about it.

  • @1DonFF
    @1DonFF 6 месяцев назад

    How to get the polyp animation?

  • @UttamRajGiri-nj5tw
    @UttamRajGiri-nj5tw Год назад

    How to make it work in multiple pages?

  • @acefluke6040
    @acefluke6040 2 года назад +1

    do you have source code?

  • @luanamendonca
    @luanamendonca 2 года назад

    i had a long time trying this........i found that i needed to have windows animations activated... 🤣🤣

  • @ashwins1936
    @ashwins1936 2 года назад

    How to adjust the position.. my second slide's position is not perfect..Which property i should use to adjust the position... When it scroll down it scrolls little up.. I want to make it little down

    • @Tech2etc
      @Tech2etc  2 года назад

      U can use offset or height .... there are many several way to do it.

  • @vrushtimorabia9829
    @vrushtimorabia9829 2 года назад

    Nice

  • @aryankhokhar2971
    @aryankhokhar2971 Год назад

    but bro when you add smooth effectin last of video it's too fast not like in starting of video

  • @joshuaikhine1669
    @joshuaikhine1669 2 года назад

    Please how did you add those animations

    • @Tech2etc
      @Tech2etc  2 года назад

      Check the description for that tutorial.

  • @thepolesHD
    @thepolesHD 2 года назад

    I dont get why some websites have lots of js jquery code for this and in css is just one line...

  • @7tno
    @7tno 21 день назад +1

    i need help it didn't work with me

  • @pemadechen9901
    @pemadechen9901 2 года назад

    html{scroll-behavior:smooth;}
    For future reference

  • @master138
    @master138 Год назад +2

    4:35

  • @minhazursarker1997
    @minhazursarker1997 3 года назад

    দিন দিন ফ্যান হয়ে যাচ্ছি ভাই।ভাই,ইংলিশে তো আমরা গুটি কয়েকজন বুঝি।বাংলা ভার্সনেও দিয়েন ভাই।দেশের মানুষের জন্য

    • @Tech2etc
      @Tech2etc  3 года назад

      Obosshoi vai....age ei channel ta ektu establish kore feli, then arekta channel khulbo just bangla te...

  • @vedanttiwari3112
    @vedanttiwari3112 3 года назад +1

    With just one line of code?

  • @ndegwakaranja.9674
    @ndegwakaranja.9674 Год назад

    hey man i was looking for a way to make the words in my website appear the way yours do when you scroll down the page. This video didn't answer the question i was hopping

    • @Tech2etc
      @Tech2etc  Год назад

      Hi! Those was actually scroll animation. I have added the full tutorial link of that website in the description. You can check that out.

  • @pitterquenallata
    @pitterquenallata Год назад

    Habilita la seccion de subtitulos de yotube para LATAM
    porfa

  • @angelcg635
    @angelcg635 3 года назад

    Grandreeeee

    • @Tech2etc
      @Tech2etc  3 года назад

      Obrigado querida

  • @alicarryme
    @alicarryme 2 года назад

    Doesn't work with safari on iphone

  • @cheaptuber641
    @cheaptuber641 9 месяцев назад

    ❤❤❤

  • @MinhazurSarker
    @MinhazurSarker 3 года назад

    এর আগের কমেন্ট টা অন্য জিমেইল থেকে ভাই।

  • @priyabhardwaj9530
    @priyabhardwaj9530 Год назад

    U did not show the css program bro