Smooth vertical page scrolling using mouse wheel and scroll bar - javascript

I am playing around and trying to build a parallax website - yes, I know they are an annoying fad but I would still like to have a go. So, for inspiration, I have been looking at various examples of good parallax websites and came across this one: https://victoriabeckham.landrover.com/INT.
It has smooth scrolling using the mouse wheel, scrollbar, and anchor links. I have been searching for jQuery plugins that would achieve this effect but can only seem to find ones that use internal page links - anchor or ID's (detailed below) - but, not mouse wheel and scrollbar. There is a good chance that I am searching using the wrong keywords. Does anyone know the correct terminology to find these plugins or know any plugins that would achieve this effect?
On a side note, I am currently learning jQuery and Javascript but am in the very early stages - still trawling through codeacademy and not made it onto any real world code yet. So at the moment I am playing with plugins as a way of learning but hopefully in a few months I can build my own stuff!
Smooth scrolling to anchor tags or ID's:
http://archive.plugins.jquery.com/project/ScrollTo
http://jsfiddle.net/9Amdx/7/
http://arthurclemens.github.com/jquery-page-scroll-plugin/
http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12
http://www.designova.net/scrollerbird/
http://chris-spittles.co.uk/?p=462
http://joelb.me/scrollpath/ (*courtesy of #DrunkRocketeer)
And, another example of a parallax website using a similar technique for scrolling:
http://www.ascensionlatorre.com

Try this one. https://nicescroll.areaaperta.com/
It has got
$().scrollTop()
jQuery event listener too so you can have scroll path configured with parallax script.

I think you have to combine several of these effects in order to make something that resembles the Landrover site. A Smooth scroll script, a scroll path script and a parallax script.
This is an interesting site for the path element of that website:
http://joelb.me/scrollpath/
Though the best way to find out how these sites work is to examine them! Some cool sites useing parallax:
http://www.awwwards.com/?s=parallax&post_type=all&search=Ok
I hope this was of some help/inspiration!

Related

Parallax-Animation Scrolling Effect

I've been wanting to implement a similar effect like in these apple sites where the computer animation changes with the scroll.
https://www.apple.com/macbook-pro-16/
https://www.apple.com/imac-pro/
Searching around how to implement the sort of parallax effect Apple does in these websites, I haven't expressly found something quite the same, how is this accomplished?
They propbaly used three.js scripts to achive this. But you can do it in much more easier way but with worse performace for sure. You need to make a lot of photos (you know like in the movie frame by frame) and then on the scroll event you have to replace photo with prevoius one(if you detect scroll top) or with next one (if you detect scroll down). If you detect last or first item then you stop hijacking scroll event and let browser do the job.
If you want to learn more abot three.js you can read more about this here: three.js - Learn
In the end of <body></body> element of this website you can see that they added three.js :
I was also researching what apple use on their website and found out that a tool called Lottie.
Lotttie is a design library by Airbnb you can find it here
"Lottie is an iOS, Android, and React Native library that renders After Effects animations in real-time, allowing apps to use animations as easily as they use static images."
Lottie also has a web version available here

How to make scrolling smoother (not anchor links, just scrolling in general)

So I am working on a website about myself, because I want to become a freelancer some day and make websites for clients. I thought something like smooth scrolling would make the site look much cooler. I have looked at multiple jQuery plugins online, but they do not seem to give me the smooth animation I want.
DEMONSTRATION OF SMOOTH SCROLL I WANT -> http://bayshoresolutions.com
Please do not rate negatively unless you have left a comment telling me why so I can fix my post
I was able to find one by searching section scroll. Just to let you know this is considered bad UX design by many. Check out here: https://ux.stackexchange.com/questions/81721/is-using-pages-section-scrolling-good-for-ux
https://github.com/alvarotrigo/fullPage.js
http://alvarotrigo.com/fullPage/

How do I recreate the smooth scrolling effect that I found on this site in jQuery/JavaScript?

Here's the site I'm talking about: http://hlkagency.com/.
Basically, I love the scrolling effect on tapping the up and down arrow keys. Other smooth scrolling libraries I found were too slow and clunky. I want to make something that works exactly like this.
I tried going through the minified script used on the page after beautifying it, but there just seems to be a whole lot going on.
That's a Parallax style scrolling. Like #RobertHarvey pointed on his comment. There are so many libraries since it has become very popular. This Library has examples of how it can be implemented. If you do a google search on parallax libraries for JS you will find a ton.

Jquery plugins - iphone scroll acceleration

Are there any jquery plugins that can simulate the acceleration on an iphone when scrolling - doesnt have to be exactly like it but anything remotely similar. I cant seem to find anything.
Along the same lines, are there any really, good examples of smooth javascript scrolling out there? Most javascript scrolling seems jittery in one way or another.
Hey, I've used iScroll in a previous project, it runs really smooth (particularly on the 3GS/4). There are several examples and and a demo on the site.
http://gsgd.co.uk/sandbox/jquery/easing/
try easing plugin. there are loads of different animation options.

Styling of on-page scroll bars

I am working on a site to the specification of a designer who loves to put styled scroll bars on the page (not the main scroll bar on the right, but for various fixed-height divs on the page, when the content overflows).
I'm not asking if this practice is "right" or not, and I know it's generally accepted to be a bad idea in terms of user-experience, but that doesn't change what the client is now expecting to see on their site.
Does anyone know of any relatively bug free, cross browser methods for doing this. Examples I've seen so far include Skinned HTML Scrollbar, Ajaxian Webkit, and jScrollPane, but I'd like to hear from anyone who has achieved this functionality in the past before I implement one of these.
Thanks in advance.
I've used jQuery in the past when a client and their designer insisted in having customised scroll-bars. It's quite easy to stick a div on the side of a box and make it draggable between limits (and interpret the position to set the scroll offset).
But you also have to consider what happens if they want to scroll using the mousewheel, or middle-click. They're not blockers but you'll have to write listeners to update the scroll-bar position too.
Whether or not you should do it is a completely different question. You should certainly not just rely on your custom JS. Make the JS disable the scrollbar and paint all your controls using JS. If you don't do this, people with JS disabled/blocked won't be able to use your site.

Categories