Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [scrolltop]

The scrollTop method. An element's scrollTop is a measurement of the distance of an element's top to its topmost visible content.

0 votes
0 answers
21 views

Adding style when bootstrap collapse open

I want to add a style to the opened div for my Bootstrap-collapse. My code: <div class="card"> <div class="card-header" id="headingThree2"> <h5 ...
Andreas Thomsson's user avatar
0 votes
0 answers
15 views

window scroll to top not working in nextjs client component

This is the client component code 'use client' import { Mdx } from "components/mdx-components" import { Button } from "@components/ui/button" import { Github } from "@lib/...
Shivam Soni's user avatar
0 votes
1 answer
48 views

Scroll up section in React with page load

How can in react typescript I move the scroll of a section of the page to the first section in page on page load? I want to scroll a part of the page on page load to the first part Only the desired ...
BEHNAM rashedi's user avatar
0 votes
1 answer
37 views

Clicking anchor links rendering incorrect scrollTop value (all browsers)

I am building a page which features a header which is hidden out of view (negative TOP value) when scrolling down and returns to view when scrolling up. No problems there, working fine. I also have a ...
Derek N's user avatar
  • 35
0 votes
1 answer
56 views

Convert jQuery scrollTop to Javascript to invert scroll direction

I'm trying to convert some jQuery code to Vanilla JS. The purpose is to invert the scroll direction of a container. The jQuery version works fine. However I'm struggling to convert it in JS. $(window)....
Mathieu Préaud's user avatar
0 votes
0 answers
17 views

TinyMCE jump to byte offset

Two or more users in different browsers are looking at the same doc within my thin client browser app in tinymce. Only one user is Active Editor. As the active editor types, I periodically broadcast ...
user1776933's user avatar
0 votes
0 answers
13 views

Secondary Fixed Navigation with Anchors to Sections

I need to incorporate a secondary menu that shows up when scrolling. In the desktop version, the menu has links to the sections down below in the same page. Plus, it has a scroll to the top button. ...
Valentina Nardini's user avatar
0 votes
0 answers
31 views

jquery how to know if thead is scroll to top

i am using jquery ui layout. In the center pane (ui-layout-content) i have a large table. I made the thead sticky. But i like to change the background-color if the thead is sticked at the top. This is ...
user6625547's user avatar
0 votes
1 answer
52 views

ScrollTop jerky in Chrome

I have this code and I am unable to achieve a fluid movement using Scroll-to-top function and Cubic bezier / 'easeInOutCubic' at lower speed (e.g 4000-6000). I've tried different alternatives with no ...
typo_'s user avatar
  • 11
0 votes
1 answer
117 views

Can't get scroll position within the page. All options returning zero / low values

I don't know what's going on with this code. $(document).ready(function() { $(window).on('scroll touchstart', function() { console.log( "$('body').scrollTop="+$('body'...
Jodes's user avatar
  • 14.5k
1 vote
1 answer
65 views

Scrolling through page in Selenium Python

Can you please explain/break-down the following syntax on how 'scrollTop' works in Selenium-Python: inner_window = driver.find_element(By.XPATH, "XPATH") driver.execute_script('arguments[0]....
user9811289's user avatar
0 votes
0 answers
2k views

How to automatically scroll to top in Nuxt/Vue when clicked on the button?

I'm trying to set scrolling to top when user clicks on the button but i get two problems. First of them is buttons is not displayed on the screen. Secondly, button for scrolling to top doesn't work. ...
Emircan's user avatar
1 vote
1 answer
1k views

How to get scroll behavior to work with this setup in Vue 3?

I have tried various iterations of scrollBehavior and haven't been able to get it working with this setup. I have tried adding it to all routes, I have tried adding meta data to each route and doing ...
jeanpegg's user avatar
0 votes
0 answers
27 views

Jquery onclick scrolltop speed not changing/delays the animation instead

I have function that scrolls the page back to the top when clicked: $('.back-to-top').on('click', function(){ $("html").animate({ scrollTop: 0 },300); }); The function is ...
Jamhu's user avatar
  • 1
1 vote
1 answer
41 views

jQuery: Hide element if user scrolled to the end of the page

I want to show an element if the user scrolls to a certan position on the page. But I also want to hide the element if the user reaches the end of the page. For now I only have the code to show the ...
Cray's user avatar
  • 5,433

15 30 50 per page
1
2 3 4 5
80