Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

birdietorerik's avatar

Auto scroll

Hi! Have created a laravel application using vue. Need to have this autoscroll on one of my pages. If the page show to many rows, i must be able to autoscroll page

Is there a vue compoent or somthing in Laravel i can use ?

0 likes
5 replies
Sinnbeck's avatar

What do you mean by autoscroll? That it always stays scrolled to the bottom like a chat window?

birdietorerik's avatar

@Sinnbeck Hi! Try to explane.

I have a component that displays a list. The list can become large, but there is only room for about 5-6 rows. What I want is that when users want to see rows 7 and beyond, they should be able to scroll down automatically. That means the rows should appear as they scroll with a mouse (on a PC) or with their fingers on a mobile device.

1 like
martinbean's avatar

I have a component that displays a list. The list can become large, but there is only room for about 5-6 rows. What I want is that when users want to see rows 7 and beyond, they should be able to scroll down automatically.

@birdietorerik Web browsers kinda already have scrollbars for long pages of content…

RemiM's avatar
RemiM
Best Answer
Level 16

I'm not sure I fully understand, but if you're looking for infinite scrolling, here are some resources that might help:

On the other hand, if you have a fixed pagination with a set number of items but need to limit the visible content due to layout constraints, you can handle this with CSS. Here are some relevant resources:

Please or to participate in this conversation.