scrolltop Questions

4

I am trying to develop an application, but I ran into a problem. You know real applications like Apple's Shortcuts or Cydia, when you scroll they all have an effect with the titles at the top, I ha...
Tonsure asked 10/3, 2019 at 14:3

24

Solved

I am using Angular 5. I have a dashboard where I have few sections with small content and few sections with so large content that I am facing a problem when changing router while going to top. Ever...

6

Solved

I am making some plugin and I need to get maximum scrollTop value of the document. Maximum scrollTop value is 2001 , but $(document).height() returns 2668 and $('body')[0].scrollHeight gives me und...
Mutiny asked 18/10, 2012 at 23:30

9

Solved

How can I use the scrolltop without an animation This code works: var offTop = $('#box').offset().top; offTop = offTop-43; $('#mainCt').animate({scrollTop: '+=' + offTop + 'px'}, 400); And here...
Acquiescence asked 13/4, 2012 at 15:24

13

Solved

First, let me point out, i've googled and even looked at answers on here like this and this, however, I'm still yet to find a working solution for my case. I've designed a page that has several fi...
Bohunk asked 16/2, 2012 at 17:52

5

Solved

This should be a pretty basic question, but i've thrown most of my morning at it, and at this point I'm close to throwing in the towel. I have not even a little bit of js foo -- but I found a nicel...
Forge asked 30/1, 2012 at 18:11

12

Solved

I set the page to scroll to top when a button is clicked. But first I used an if statement to see if the top of the page was not set to 0. Then if it's not 0 I animate the page to scroll to the top...
Cricket asked 10/5, 2013 at 4:28

1

scrollPositionRestoration : 'top' is not working for RouterModule.forchild()? Is there any solution in angular 7 to make sure that page always scroll top after navigation?
Waxwing asked 16/4, 2019 at 8:32

4

Solved

Trying to make the browser scroll to a specific ID with an added offset - $('html, body').animate({scrollTop: $('#contact').offset().top}, 'slow'); What I need to do is to set the offset by -100...
Cyndy asked 8/3, 2012 at 14:15

3

Solved

I'm using an app with a tableView that auto-scrolls downward, so tapping the status bar, which would normally jump to the top of the table, causes problems (it begins scrolling but if the auto-scro...
Dinh asked 13/3, 2013 at 20:52

2

I am calling this javascript on page load document.body.scrollTop = document.documentElement.scrollTop = 0; I want html page starts from top when loaded, above javascript working fine for chro...
Starfish asked 16/11, 2016 at 15:3

4

Solved

It seems body.scrollTop (and body.scrollLeft) are deprecated in ES5 strict-mode. What is the reason for this, given that it still seems okay to use these properties on other DOMElements? Backgroun...
Minsk asked 28/10, 2013 at 12:46

5

When trying to find out how much a web page has been scrolled from the top, which of these should one use: document.body.scrollTop, document.documentElement.scrollTop, window.pageYOffset, w...
Stearoptene asked 27/10, 2013 at 13:25

2

Solved

Running the following in Chrome always returns 0: $(window).on('load', function(){ console.log($(window).scrollTop()); }); Running that same command via the console: $(window).scrollTop() Do...
Petronia asked 31/7, 2013 at 7:47

5

Solved

I'm having issues making this feature work and i would like to get some help. My hierarchy is TabBarController -> Navigation Controller -> TableViewController What i want is if you are on current...
Ganley asked 14/4, 2017 at 13:12

9

Solved

I'm simply trying to do something once the scroll position of the page reaches a certain height. However scrollTop() is returning 0 or null no matter how far down I scroll. This is the help functio...
Mercie asked 8/10, 2012 at 19:50

7

Solved

I have a gridview inside a div.. I want to scroll to top of the div from the bottom of the div using jquery.. Any suggestion.. <div id="GridDiv"> // gridview inside.. </div> My gridv...
Parochialism asked 3/3, 2010 at 5:59

4

Solved

I have a scrolling element inside a window. Say a division having a class "currentContainer" with overflow auto and that division contains huge amount of text so that it is definitely large enough...
Burkhalter asked 12/4, 2015 at 18:21

2

Solved

I am working on the below code. I am trying to discover why I am not able scroll the .post div with jQuery and input range properly using percentage value like this: $("[type=range]").on('input...
Exploitation asked 13/3, 2020 at 4:58

3

I've got a few anchors that link to specific sections (using hashtags) within the page, and ones that scroll to the top or bottom of the document window. $("html, body").animate({ scrollTop: $(doc...
Ascendant asked 5/4, 2012 at 8:12

1

Solved

I have a feature on my website where the logo scrolls vertically depending on the users position on the site. You can see it working on Chrome here However it does not work on Safari, which inclu...
Ewe asked 4/11, 2019 at 12:22

0

The scrollHash() function below is intended to scroll to a target anchor while adjusting the position to reflect both the fixed menu and desired margin-top. The function works properly in Chrome,...
Cabana asked 30/10, 2019 at 1:56

2

Solved

I may have missed something, but I cannot get window.scrollTo(0,0) to move to the top of the page. I am implementing a sticky aside which works well enough. It uses .getBoundingClientRect() to get...
Uncle asked 15/9, 2017 at 8:0

5

The following JQuery code scrolls the page to the first error in the form: $('html,body').stop().delay(500).animate({scrollTop: $errors.filter(":first").offset().top -30},'slow'); However, if I ...
Mcquade asked 10/2, 2012 at 21:37

2

Solved

I'm pretty new to HTML in general. I have the following code and I was wondering if there is any way of using a percentage instead of a fixed value. I have searched but I couldn't find a simple sol...
Eyeglass asked 19/11, 2018 at 13:36

© 2022 - 2025 — McMap. All rights reserved.