---
title: "Discussion on \"Vanilla JavaScript Element.scrollIntoView\" | Hashnode"
description: "Discussion on \"Vanilla JavaScript Element.scrollIntoView\". Pretty sure you have seen this, you click a button and smoothly scroll to that section.\nToday we are looking at how to achieve this in Vanilla JavaScript, using the Element.scrollIntoView() function.\nHTML Structure\nLet's setup a small demo to demonst..."
url: "https://hashnode.com/posts/vanilla-javascript-elementscrollintoview/5ea7c85f12892a3c760ba0a9"
---

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

Discussion

# [Vanilla JavaScript Element.scrollIntoView](https://h.daily-dev-tips.com/vanilla-javascript-elementscrollintoview?utm_source=hashnode&utm_medium=feed)

Pretty sure you have seen this, you click a button and smoothly scroll to that section. Today we are looking at how to achieve this in Vanilla JavaScript, using the Element.scrollIntoView() function. HTML Structure Let's setup a small demo to demonst...

Apr 28, 2020 · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

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

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 2

Markdown supported · ⌘↵ to post

[ovile wade](https://hashnode.com/@ovile9080)

[May 13, 2021](https://hashnode.com/posts/vanilla-javascript-elementscrollintoview/5ea7c85f12892a3c760ba0a9/comment/609cc35447373d4cb05600f9)

Get here are the best article for read it got the online [windows setting](https://oneshottech.com/sync-my-settings) easily and using the latest version of windows to read this article.

[Lewis Gribben](https://hashnode.com/@lewisgribben)

[Sep 11, 2020](https://hashnode.com/posts/vanilla-javascript-elementscrollintoview/5ea7c85f12892a3c760ba0a9/comment/5f5addb88caae04fa643d4de)

Thank you so much for this. I've added it successfully in Vanilla Javascript. [geometry dash](https://www.geometrydash.me/)

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 11, 2020](https://hashnode.com/posts/vanilla-javascript-elementscrollintoview/5ea7c85f12892a3c760ba0a9/comment/5f5addb88caae04fa643d4de#reply-5f5b10f31f75694fab53eeae)

Awesome glad it was useful to you Lewis!
