---
title: "Discussion on \"Styling a sticky element when it gets pinned using React\" | Hashnode"
description: "Discussion on \"Styling a sticky element when it gets pinned using React\". In this case, using the scroll event offers more flexibility than using the IntersectionObserver API"
url: "https://hashnode.com/posts/styling-a-sticky-element-when-it-gets-pinned-using-react/66076988d7a0270ecb1a8c13"
---

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

Discussion

# [Styling a sticky element when it gets pinned using React](https://blog.itsjavi.com/styling-a-sticky-element-when-it-gets-pinned-using-react?utm_source=hashnode&utm_medium=feed)

In this case, using the scroll event offers more flexibility than using the IntersectionObserver API

Mar 30, 2024 · 1 min read · blog.itsjavi.com  
Read the article

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

## Written by

[Javier Aguilar](https://hashnode.com/@itsjavi)

@itsjavi · Berlin, DE

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

Senior Full-Stack Software Engineer

Senior Full Stack Developer in the ☁️ Creator of supereffective.gg, a Pokémon community running on Next.js and @vercel

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
