Code

Discussion on fancyScroll

Discussion on fancyScroll

Cart 360 sales

flGravity supports this item

Supported

This author's response time can be up to 5 business days.

43 comments found.

So basically there is no offset for the content on the divs, only its background ?

yes! “offset” attribute that set for “fancyscroll-background” div affects background-image position, not position of div element itself

Hello flGravity, love your scroller.

Is there a way to synchronize the content of the “fancyscroll-background” divs to the movement of the background?

Thanks for question! Setting “offset” attribute to 0 will sync “fancyscroll-background” with actual scroll, if you meant this

hi, i based an entire website with this scroll, but now i ve just realized that it doesn’t work with all version of Explorer…the reason is always a javascript error: “Arguments are not valid” and the reference is the file fancyscroll.js, 93 line, 2 character. the code line is:

//and apply inline style to background
dv.self.style.backgroundPosition=of;

in all other browser work…just EXPLORER 7 ,8 and 9 doesn’t work…please i really need help, my client need this site as soon as possible for an advertising campaign. I am sending the website in e-mail, so you can check. Please, i really need help :(

I seems have found the problem, check my email.

Thank you flGravity to help me, the problem is going to be fixed with new version of the script, isn’t it? ;) now it works with all browsers with no problems ;) he is very friendly and helpful and he fixed all what i have asked…great experience!!! i ll remember you!

Hi! exist a way to move some elements vertically, and some others horizontally?

no, unfortunately its not possible.

mmm is it impossible?! don’t you have some king of tip or point to start to try coding an hack to make it possible? please, it is important for my project.

Sorry, but I don’t have time to work on extending functionality of fancyScroll plugin.

Hi,

It’s a great script! Love it! My only problem is that it looks awful in Firefox 5.0, even your demo page: http://gravitysign.com/fancyscroll/ The images move very slowly and they’re “shaking”. So weird! Is there a way to fix that? Otherwise I can’t use it… I can’t tell my visitors to choose another browser because my site doesn’t work well in Firefox… It works great in Chrome though!

Thanks!!

I think that the slowness of animation in FF5 is caused by some internal tasks that browser needs to complete before updating image position. For example browser may require 20-30 or so milliseconds to re-render big images, and thus postponing position refresh through setInterval(). As result animation time is greater than what you have set for duration in “new fancyScroll()” call.

Another question is “shaking”. This happens when image’s “offset” is set too hight (2000px) and duration of animation too low (1sec). In these circumstances amount of shift during position update may reach 5 or more pixels, what becomes noticeable to the eye. So you need to find a balance between offset and duration. The rule is – if you use high offsets you need to increase duration.

Also, I remember at the beginning I had a problem with poor graphics, even though I set small offsets. And it turned out that it was caused by image sampling algorithm ( in Photoshop there is bilinear and bicubic etc sampling methods for exporting images). As I remember bicubic method fixed everything. Also I think its good idea to do not use transparent images and keep their size as small as possible. This should increase rendering speed for firefox and other browsers, and make setInterval() updates happen in time.

Whats the best way to center it?

In the default settings everything is pushed to the left and when i try to center it I lose half of everthing on the right!

Thanks in advance

I would like to centre content sections

There is a class “fancyscroll-content-offset”, which sets left and top padding for content. You can use it to center things.

You my friend are a genius, thank you! Cant believe I didnt see that

Hi,

FYI , there seems to be a small error in the documentation, the parameter :

easeTime:2000 i believe, should be easingTime:2000

Math.

yes, you’re right, option name is easingTime

hi there, great script!!

i was just wondering.. how can i make the goto Top button, to go to the Bottom instead.. we want it to be a Sitemap button instead and have the bottom be a sitemap.

thanks in advance!

Thank you!

I think this is quite easy. Open fancyscroll.js and find line with
this.addScroll(this.goTop,this.map[0].self);

and change it to

this.addScroll(this.goTop,this.map[this.map.length-1].self);

This will make “goToTop” button scroll page to the last section on page instead of first

Hi,

I’m having a problem with the appearing “top” scroll link when I incorporate my own css: It seems to always take me to the top of my first bit of content rather than the true top of the site, as though it ignores margin or padding, yet the home link takes me to the top just fine.

Any ideas? I’ve tried to compare my html and css to your example and I just can’t see what I’m doing incorrectly.

Thanks, Parris

Hi, please contact me using mail form on my profile page and give me url to your page. I need to have a look and I will tell you what’s wrong.

Excellent work, the horizontal addon is great also, make it feell like you scroll pages in ipad. Amazing file.

Ok flGraviry and mikegulline, thank you so much! I will try this.

Renan

you could just wrap everything in one window sized div and hide the scrolling there.

Hi, I’ve just buy this script and i really liked it, but i’m having some problems with a “shaking background” when i roll over the page by clicking on the top buttons. When i use the lines.jpg in background (default), i almost don’t realize the image shaking, but when i use a picture in background, this looks bad. Can you help me?

Please, look the example: www.nyarquitetura.com/teste/index-vertical.html

Thanks,

Renan Múfalo

Hi!

hmm, very interesting. I will try to find the reason and will let you know as soon as possible.

The reason why background is shaking is following. For this background you have offset 800 and easing mode easeOutCubic, and when plugin calculates every next position for background image it samples in range from 800 to 0. At the beginning of easing the difference between previous and next position is about 20-30 pixels (this is when it looks shaking) then at the end of easing this difference drops to few pixels what makes animation smooth. This strike the eye when you have big images. Also to render such big image browser needs more time as when it does for small images, what is almost instantly.

The best thing to eliminate sharking is to use smaller offset for big images

Hope this helps!

Awesome work, congratulations, and a great support.

Love this script. I was thinking it might be cool used as a slideshow. Is it possible to do this and make the slideshow auto?

Thanks! yeah, this might be interesting!

Hi there,

I’m running a phpbb forum. I was wondering if i could use your script to simply scoll the webpage up when people Hit the “up” button.

would your script make sense for it?

Thanks

not really :) to be honest to just scroll the page ‘up’ it’s better to use jQuery and the code like this

jQuery(‘html, body’).animate({scrollTop:0},’slow’);

Thanks for adding the FAQ .
Still, I being a newbie with js, got nothing of it (Sorry, my bad)
Wish if I could go through the installation guide before buying (is it possible?)

Did you have a chance to have a look on source of my preview page? I think this can make things clearer. Otherwise you may contact me using mail form on my profile page and I will give you installation guide

Thanks for questions!) I have created FAQ where I tried to outline basic functionality of fancyScroll plugin and how it works. If anything is not clear let me know and I will add more detailed explanation.

My question is very similar to prosenjeet (immediately above). What are you scrolling? Can you scroll regular HTML text?

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey