---
title: "Discussion on \"Enable Smooth Scrolling With One Line of CSS\" | Hashnode"
description: "Discussion on \"Enable Smooth Scrolling With One Line of CSS\". In this article, I'll be showing you how to add smooth scrolling to your website with just one line of CSS."
url: "https://hashnode.com/posts/enable-smooth-scrolling-with-one-line-of-css/6220954c3929ce3806842188"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Enable Smooth Scrolling With One Line of CSS](https://blog.blakeyeboah.com/enable-smooth-scrolling-with-one-line-of-css?utm_source=hashnode&utm_medium=feed)

In this article, I'll be showing you how to add smooth scrolling to your website with just one line of CSS.

Mar 3, 2022 · 2 min read · blog.blakeyeboah.com  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#html5](https://hashnode.com/tag/html5)

## Written by

[Blake Yeboah](https://hashnode.com/@BlakeYeboah)

@BlakeYeboah · Brisbane, Australia

  
[View profile](https://hashnode.com/@BlakeYeboah)

Full Stack Web Developer

I'm a full stack developer based in Australia. I write articles about Node.js, React, JavaScript &amp; Web Development to make your learning journey easier 😀

## Responses 1

Markdown supported · ⌘↵ to post

[Vic Kalchev](https://hashnode.com/@vickalchev)

[Mar 3, 2022](https://hashnode.com/posts/enable-smooth-scrolling-with-one-line-of-css/6220954c3929ce3806842188/comment/6220c1c44b7ec93a5c1eb530)

That's pretty cool. Is there a way to control the speed of the scroll? I also wonder if this can be done with transition in CSS. 🤔

[Blake Yeboah](https://hashnode.com/@BlakeYeboah)

[Mar 4, 2022](https://hashnode.com/posts/enable-smooth-scrolling-with-one-line-of-css/6220954c3929ce3806842188/comment/6220c1c44b7ec93a5c1eb530#reply-62219470c2286341f6529b34)

I don't think you can control the speed with this method. I believe you would need to implement some JavaScript to do that.
