---
title: "Discussion on \"A Look At React Hooks: useScrollPosition for Parallax Scrolling Effects\" | Hashnode"
description: "Discussion on \"A Look At React Hooks: useScrollPosition for Parallax Scrolling Effects\". Learn how to make your own custom Hook called useScrollPosition to create a parallax scrolling effect!"
url: "https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad"
---

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

Discussion

# [A Look At React Hooks: useScrollPosition for Parallax Scrolling Effects](https://blog.lo-victoria.com/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects?utm_source=hashnode&utm_medium=feed)

Learn how to make your own custom Hook called useScrollPosition to create a parallax scrolling effect!

Mar 11, 2022 · 5 min read · blog.lo-victoria.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Victoria Lo](https://hashnode.com/@victoria)

@victoria · Singapore

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

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses 4

Markdown supported · ⌘↵ to post

[Enes Kaplan](https://hashnode.com/@EnesKaplan)

[Mar 17, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/62330c49aad85616fcadf5c6)

This was a nice read, thanks. Knowing built-in hooks is important but a smart programmer should be able to extract reusable logic.

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 18, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/62330c49aad85616fcadf5c6#reply-623422c3bef4c71aa6f0d7ae)

Thanks for the read! 😊 I hope this will inspire you to build a custom hook too!

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Mar 13, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622e02e4197586d5f925bdd2)

Love the Parallax scrolling effect.

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 18, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622e02e4197586d5f925bdd2#reply-623422aa6647c71acb64117b)

Thank you Andrew!! 😊

[Tapas Adhikary](https://hashnode.com/@atapas)

[Mar 12, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622cae47c86eecb52b372e80)

Good one [Victoria](https://hashnode.com/@victoria)

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 13, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622cae47c86eecb52b372e80#reply-622dbcfedf08b9b823418ad5)

Thanks [Tapas Adhikary](https://hashnode.com/@atapas), my friend 😊

[Ajay](https://hashnode.com/@ajay020)

[Mar 12, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622c5fd7c86eecb52b372431)

It's an amazing article! Thanks, Victoria.

I always wanted to implement that kind of functionality in my project but thought it might be difficult. So I always avoided it. But you made it very simple.

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 13, 2022](https://hashnode.com/posts/a-look-at-react-hooks-usescrollposition-for-parallax-scrolling-effects/622b37ca8ea100a5ef1870ad/comment/622c5fd7c86eecb52b372431#reply-622dbcf02f73c1ca2f298fb2)

Thanks [Ajay Kumar](https://hashnode.com/@ajay020)! I'm so glad you find the article helpful 😊😊
