Questions tagged [scrollto]

jQuery.scrollTo is a plugin for scrolling elements and the window with jQuery animation, by Ariel Flesler.

  • Project on Github (includes documentation)
  • Plugin Releases
  • Gist on anchor navigation with jquery.scrollTo
  • Migration to jquery.scrollTo 2.0
751 questions
15
votes
1 answer

check if element got scrolled to top

I want to check if an element is scrolled to top with an offset of ~ 100px. I´ve got a page with 5 subcontents and 2 classes to make backgrounds. It looks like this:
Content1
Top Questions
  • 1,862
  • 4
  • 26
  • 38
15
votes
2 answers

JavaScript issue with scrollTo() in Chrome

I try to create a web page with a fixed navigation bar at the top that covers the content underneath. When loading the page with an anchor in the url the normal behaviour is that the page scrolls the anchor to the top of the window. But then that…
atarax
  • 175
  • 1
  • 1
  • 6
15
votes
2 answers

jQuery scrollTo fixed header offset

I am using the jQuery scrollTo plugin as you can see on the page which I'm building http://portfolio.tomvervoort.net/ Because of the 300px fixed header the content moves under the header. You can see this clearly when you click the about button in…
Tom
  • 193
  • 2
  • 2
  • 9
13
votes
4 answers

How do you animate FB.Canvas.scrollTo?

I've created an app that is a set size (around 2,000 px tall) and have a menu that calls FB.Canvas.scrollTo in order to help the user navigate the long page. Is there any way to add a smooth scrolling effect? Facebook does not offer any solution on…
Carson
  • 4,541
  • 9
  • 39
  • 45
13
votes
2 answers

How do we set speed to scrollTo() in React Native?

I'm scroll the page on click of a button using: this.scrollTo({y: height, x: 0, animated: true}) The scroll works fine, however I'd like to slow down the scroll animation. How do we do that?
user3911840
  • 151
  • 2
  • 6
11
votes
2 answers

Scroll to when page load

i got a jquery code from this link (end of page): How to scroll to top of page with JavaScript/jQuery? Why don't you just use some reference element at the very beginning of your html file, like
and then, when the page…
Alireza
  • 1,048
  • 5
  • 18
  • 36
10
votes
3 answers

UITableView scrollToRowAtIndexPath not working for last 4

I am in a UITableViewController and I have textfields inside cells. When the user clicks on the textfield, I implement the UITextFieldDelegate and in method textFieldDidBeganEditing I determine the index of the cell and scroll to that position. It…
user635064
  • 6,219
  • 12
  • 54
  • 100
10
votes
1 answer

Cannot read property 'left' of undefined

Trying to figure out why chrome is throwing out error "Uncaught TypeError: Cannot read property 'left' of undefined" although #explorenav works great but #experiencenav doesn't seem to be working. am I missing something? JS CODE: $('.nav…
AbdulWahhab
  • 101
  • 1
  • 1
  • 5
9
votes
1 answer

Getting scrollTo to work inside iframe on iOS

I have a page on mysite.com that is using an iframe to pull in content from subdomain.mysite.com. I am using the iframe-resizer script (https://github.com/davidjbradshaw/iframe-resizer) to ensure that the height of the iframe always matches the…
Mary James
  • 256
  • 1
  • 3
  • 14
9
votes
2 answers

cancel a submit in jquery?

im doing a form validation and I want to validate the input fields when "on submit" if error Im using jquery.scrollTo to go to error: $('#form_inscripcion').submit(function() { //se traen todos los inputs del formulario var $inputs =…
panchicore
  • 11,451
  • 12
  • 74
  • 100
9
votes
2 answers

JQuery scrollTo plugin becomes Jerky on iOS

I'm using the JQuery scrollTo plugin on our one-page site to vertically scroll between the different sections. The scroll works well in all browsers except iOS Safari which scrolls but is very jerky. I'm using a number of other Jquery plugins on the…
nfrost21
  • 559
  • 2
  • 10
  • 27
8
votes
1 answer

Highlight active link when using scrollto based on current view

I have a website which is one page and the user navigates to each section using links which uses the scrollto jquery plugin. My problem is: I want to show the active link in the main menu. So if you scroll to the contact form the contact link is…
Michael
  • 99
  • 1
  • 2
  • 8
8
votes
4 answers

Jquery ScrollTo Easing

Can´t apply an easing method to Jquery ScrollTo: $("#scroller").scrollTo(target,1000,{axis:'x',easing:'linear'}); This doesn´t ease anything... Im starting to use jquery now (been using prototype for long) so this is surely my mistake. Do I need an…
JoaoPedro
  • 511
  • 1
  • 6
  • 20
8
votes
3 answers

iOS - UITableView not scrolling to bottom

I am building a chat app in iOS but I have some problems with the UITableView displaying all the messages. I want the table view to be scrolled to the bottom on load so users can see the latest messages when they open the app. To do this I added…
Spearfisher
  • 8,445
  • 19
  • 70
  • 124
7
votes
1 answer

How to make mouse wheel scroll to section like in mediafire.com

I came across the home page of this website http://www.mediafire.com/, in which when you roll the mouse wheel the page position itself automatically to the next section in the page. I like to know how its done. Can anyone help me with this. Thanks…
winnyboy5
  • 1,486
  • 3
  • 22
  • 45
1
2
3
50 51