# Need help with a custom scroll event

**URL:** <https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348>\
**Category:** Need help\
**Created:** [October 18, 2021, 1:41pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348 "2021-10-18T13:41:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmedaraby](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmedaraby/32/107008_2.png) [@Ahmedaraby](https://forum.bubble.io/u/Ahmedaraby)\
**Post date:** [October 18, 2021, 1:41pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348/1 "2021-10-18T13:41:06Z")

</div>

![Screen Shot 2021-10-18 at 3.30.36 PM](https://us1.discourse-cdn.com/bubble/original/3X/5/f/5f9f45cd17999c35e73760171c18bdbf5e163410.jpeg)  
Hello Bubble Community,

I hope you are all having a great beginning of the week. I am working my way around implementing something in website and I need guidance as I am still somehow relatively new to bubble. For simplicity I attached below a screenshot that gives an overview of what I am trying to to achieve - I want to find a way as the user scrolls, this icon moves in a specific trajectory/path. Like for instance vertically then moves left, right, up down. And It should be in a specific container (Not the whole page).  
I know it can be done by custom events on scroll but I have no idea where to start 😕

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Andrew.Vernon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrew.vernon/32/80954_2.png) [@Andrew.Vernon](https://forum.bubble.io/u/Andrew.Vernon)\
**Post date:** [October 20, 2021, 3:49pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348/2 "2021-10-20T15:49:47Z")

</div>

Hey @Ahmedaraby👋

Cool idea! Now I’m hooked to see what you’re building! Full disclosure, I haven’t built this sort of thing before, but if I needed to, I would start by checking out the [Mouse and Keyboard interactions](http://forum.bubble.io/t/new-plugin-mouse-keyboard-interactions-highly-experimental/147595) plugin we offer. It has some interesting actions for repositioning elements on the page through workflows.

You might be able to couple that plugin and it’s workflow actions with having this icon in a floating group or something so it can move dynamically as the user scrolls.

Anyways, best of luck with the build and definitely share an update with what you put together! If any additional questions come up, you’re always welcome to reach out to us directly at [Support@Bubble.io](mailto:Support@Bubble.io)

---

<div class="post-metadata">

**Author:** ![Ahmedaraby](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmedaraby/32/107008_2.png) [@Ahmedaraby](https://forum.bubble.io/u/Ahmedaraby)\
**Post date:** [October 24, 2021, 5:28pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348/3 "2021-10-24T17:28:30Z")

</div>

Hello Andrew,

Thanks for your prompt response. I started experimenting with the plugin and looks promising. However, I am having some issues making the draggable element in the screenshot _The one in red_ to align and move along with the scrolling position of the user. I have attached a screenshot of the workflow I have set up. I know it’s probably not the right way but an extra POV would be really appreciated.

I intend to make the draggable element move within

 ![Screen Shot 2021-10-24 at 7.24.00 PM](https://us1.discourse-cdn.com/bubble/original/3X/8/8/8880746f4338ca999775eb013978c476458e4f9e.jpeg)  
 ![Screen Shot 2021-10-24 at 7.24.23 PM](https://us1.discourse-cdn.com/bubble/original/3X/8/7/87147332071c428fb91e900efaa05315b0485945.jpeg)  
the grey group only not outside of it.

---

<div class="post-metadata">

**Author:** ![Andrew.Vernon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrew.vernon/32/80954_2.png) [@Andrew.Vernon](https://forum.bubble.io/u/Andrew.Vernon)\
**Post date:** [October 25, 2021, 12:53pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348/4 "2021-10-25T12:53:50Z")

</div>

Hey @Ahmedaraby - Nice work getting started with this!

I might recommend trying a different dynamic expression there. Essentially, you’re checking if they match, but instead you might be wanting to evaluate it’s current position and somehow adding to it to keep things moving as the user scrolls.

Additionally, you might explore [some of the other scroll plugins](https://bubble.io/plugins?q=scroll) in the marketplace to see if something exists that might help better pinpoint the user’s scroll point so you can make adjustments to the y position.

Give it a try and don’t hesitate to reach out if we can assist with anything else.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 27, 2021, 1:41pm UTC](https://forum.bubble.io/t/need-help-with-a-custom-scroll-event/174348/5 "2021-12-27T13:41:11Z")

</div>

Closed on December 27, 2021, 1:41pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
