scrollto

iPad Flicker on auto scroll using JQuery and Scrollto plugin

此生再无相见时 提交于 2019-11-28 15:59:46
I am having a bit of a weird problem with iOS platform for a page i am developing. This is the page in question. When clicking any of the case study images, the page will first unhide the required case study then scroll to it. This works on all desktop browsers on Windows and Mac, but on the iPhone and iPad you get a horrible flicker as it scrolls down. Not quite sure how to debug or fix this issue. Any ideas would be of great help! Thanks in advance, Shadi UPDATE 1 The latest page can be found here . Still haven't found a fix - if anyone has any idea it would be amazing! wsbrs If you need

Using arrow keys with jQuery scrollTo

被刻印的时光 ゝ 提交于 2019-11-28 12:49:51
I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class "new" when a link is clicked. However, I would also like to be able to use the arrow keys to scroll up and down to the next/previous divs of the same class. I have looked all over the internet but have been unable to find out how to do this. I am very new to JS so very simple instructions would be appreciated! Here is the relevant code: <script type="text/javascript"> jQuery(function($){ $('<div id="next_arrow"></div>') .prependTo("body") //append the Next arrow div to the bottom of the

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

家住魔仙堡 提交于 2019-11-28 07:04:01
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 in advance. Regards, Aswin I think this type of animation is probably hard to take in especially someone new to jQuery. This involves scrolling, catching the mousewheel events, delay in animations, and most of all getting it to work properly on cross browsers and on mobile browsers' swipe and touch events. If you don't have a solid understanding I

ScrollTo with animation

房东的猫 提交于 2019-11-27 18:08:46
问题 how can i add an easing/animation/slowly moving to this function? At the moment it just jumps. Now it should move to the "anchor" with an animation. <script type='text/javascript'> setTimeout("window.scrollBy(0,270);",3000); </script> 回答1: also possible with plain javascript using request animation frame.. // first add raf shim // http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window

jQuery.ScrollTo / jQuery.SerialScroll Horizontal Scrolling

笑着哭i 提交于 2019-11-27 12:36:21
问题 I am looking to implement horizontal scrolling using jQuery.SerialScroll (based on jQuery.ScrollTo). I currently have a continuous horizontal scrolling working with liScroll as I discuss in this post. However, now I need discrete scrolling and I have SerialScroll working perfectly for vertical scrolling. For some reason, if the 'axis' property is specified as 'x' nothing happens. I can't even get the SerialScroll example for right to left scrolling to work. I have HTML like this: <div id=

How do you animate FB.Canvas.scrollTo?

落花浮王杯 提交于 2019-11-27 10:59:32
问题 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 its developer blog. 回答1: Using @Jonny's method, you can do this a little more simply with function scrollTo(y){ FB.Canvas.getPageInfo(function(pageInfo){ $({y: pageInfo.scrollTop}).animate( {y: y}, {duration: 1000, step: function(offset){ FB.Canvas

iPad Flicker on auto scroll using JQuery and Scrollto plugin

◇◆丶佛笑我妖孽 提交于 2019-11-27 09:30:51
问题 I am having a bit of a weird problem with iOS platform for a page i am developing. This is the page in question. When clicking any of the case study images, the page will first unhide the required case study then scroll to it. This works on all desktop browsers on Windows and Mac, but on the iPhone and iPad you get a horrible flicker as it scrolls down. Not quite sure how to debug or fix this issue. Any ideas would be of great help! Thanks in advance, Shadi UPDATE 1 The latest page can be

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

試著忘記壹切 提交于 2019-11-27 01:42:17
问题 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 in advance. Regards, Aswin 回答1: I think this type of animation is probably hard to take in especially someone new to jQuery. This involves scrolling, catching the mousewheel events, delay in animations, and most of all getting it to work properly on

How to scroll the window using JQuery $.scrollTo() function

让人想犯罪 __ 提交于 2019-11-26 15:46:39
I'm trying to scroll down 100px every time the user gets near the top of the document. I have the function executing when the user gets close to the top of the document, but the .scrollTo function isn't working. I put an alert after and before to check to see if it actually was the line or not that was stopping it and only the first alert goes off, here's the code: alert("starting"); $.scrollTo({ top: '+=100px', left: '+=0px' }, 800); alert("finished"); I know I have the jquery page linked properly because I'm using many other jquery functions throughout and they all work fine. I've also tried

How can I update window.location.hash without jumping the document?

好久不见. 提交于 2019-11-26 11:34:20
I have a sliding panel set up on my website. When it finished animating, I set the hash like so function() { window.location.hash = id; } (this is a callback, and the id is assigned earlier). This works good, to allow the user to bookmark the panel, and also for the non JavaScript version to work. However, when I update the hash, the browser jumps to the location. I guess this is expected behaviour. My question is: how can I prevent this? I.e. how can I change the window's hash, but not have the browser scroll to the element if the hash exists? Some sort of event.preventDefault() sort of thing