How to have fixed scrolling in a webpage? - javascript

I'm trying to figure out how to have fixed scrolling in a webpage like what's used here: http://manifeste.hermes.com/en_WW/?
It looks like when you scroll it automatically smooth scrolls to the next div. I assume there's some JavaScript involved, but it's beyond my knowledge how to do this.
Can anyone show me how this is done?

You can use this nice, lightweight javascript plugin alvarotrigo fullPage.js
they have a nice explanation and examples on the github page.
fullPage.js Demo

Related

HTML5 auto scroll to next section

As you can see right here: https://www.sequoiacap.com/
I'm trying to mimic its scrolling behavior right here, and its implementation really baffles me. Is it scrolling to another section? Or is it scrolling the background? Is there a name for this specific website style?
I have a one page parallax theme that I would like to auto scroll for user, so that each scroll gives the user a new fullscreen section. I would like to know how many plugins I would need to use. Some basic examples or directions for research would be greatly appreciated.
Thank you.
Here's 2 possible ways out of many, for how you could implement this:
jump.js which is a dependency-free library (meaning it does not require jQuery or similar)
fullPage which is a full page slider plugin for jQuery. This might be more of what you want, because it does not introduce a scrollbar.

Scroll speed manipulation css jquery

Find out a website http://www.boy-coy.com/#home. When you scoll down all content scrolls very smooth. Even if you scroll it fast, scroll is done at specific speed. This makes the website faster and responsive. How this can be achieved with the help of css and jquery?
At first glance.
Try reading their html source code output.
They use a few jquery plugins and legacy browser js plugin calls.
They have a custom and partially obfuscated .js script that is in depth, but you can see the specific properties it is setting on items in the page.
Barring any terms of use issues, you could likely decipher this pages cool scroll technique by working with this sample code as an example. But it is definitely a fair amount of work to write from scratch or post the entire solution here.
Im going to go and look for a smaller example that isnt as involved as this parallax.
And check out this link http:// codepen.io/JTParrett/pen/BkDie its got some starting principals here of some of the images positioning at different locations in the viewport when you scroll.
This link in SO can also help Can I change the scroll speed using css or jQuery?
Kirupa has a nice tutorial that can likely help in getting the smoothe scrolling effect stared too. http://www.kirupa.com/html5/smooth_parallax_scrolling.htm
And this one is pretty awesome. I think I would look into this demo. Be sure to test all of click event demos here. Im sure you could tie in your jquery tween event for the scroll bar with this http://plugins.compzets.com/animatescroll/
Another decent example http://bassta.bg/demos/smooth-page-scroll/
It is called Parallax,
Check this: http://www.w3schools.com/howto/howto_css_parallax.asp
http://matthew.wagerfield.com/parallax/

Highlighting nav without jquery

I have a web page with anchor links and I wish for them to stay highlighted when they are clicked AND when the user manually scrolls down. I have seen some jquery code here codepen.io/jakob-e/pen/mhCyx that does what I wish to do, however I wish to achieve this effect using raw javascript and I can't see it posted anywhere. Thanks for any help.
Sounds like you're looking for animated scrolling and scrollspy functionality? Shameless plug for two native JS (non-jQuery) scripts I wrote that are designed to work together:
Smooth Scroll: https://github.com/cferdinandi/smooth-scroll
Gumshoe for scrollspy: https://github.com/cferdinandi/gumshoe

display content with animation when scrolled down to it

i am looking for simplest any cleanest way to display content or blocks of content on my site when scrolled down to it. i mean that i would rather not use any frameworks as are jquery or bootstrap.
i would like to achieve something like is seen on these sites:
http://demo.joomla51.com/?theme=Cashmere
http://www.dropingood.com
what would you recommend me how can i achieve that? i am quite familiar with html5, css3 and javascript.
thanks
Parallax Scrolling is what you're looking for. How Nike Did it.
Using existing plugins can help you achieve your desired effect while keeping a low overhead. Here are some examples:
WOW.js
Superscrollorama
Scroll Magic
Skrollr (Open Source)
others...
You can also see previous question like so: Parallax Scrolling # SO
Quick Google searches are your friend!

Scroll multiple DIVs using Javascript Scrollbars

I have the following setting: http://jsfiddle.net/dobbylan/DnmvR/5/
In this example, scrolling the maindiv also scrolls the upper/left div.
However I'd like to exchange the native Scrollbars for Javascript Scrollbars.
I have been searching the web for some simple Javascript code that provides a minimalistic Scrollbar AND allows for scrolling multiple DIVs.
Any hints on a simple JS code snippet that provides a simple Scrollbar and can scroll multiple DIVs?
If you are willing to use jQuery, I found a nifty plugin that will do it for you. It can be styled with CSS, so it can fit the look of your site as well. Check out the demo to see for yourself...
A quick look at the source of the demo page also shows you how to use it:
$("selector").mCustomScrollbar(
[direction],
[easing],
[easing type],
[bottom scrolling space],
[scrollbar adjust],
[mouse-wheel support],
[button-scroll support],
[button-scroll speed]
);

Categories

Resources