I want to create a section similar to the “App timers” section on this page(it's towards the bottom): https://www.android.com/versions/pie-9-0/. I can only have one section like this on my page with the rest being normal scroll.
I see that they use scrollmagic but I can’t seem to find examples similar to this in their documentation or that any one has done. I considered using fullpage.js, but I can’t seem to make it work with only one section activated like that in the middle.
Any suggestions?
Related
I know that it is not a very precise question, but I do not know where to start, I have an example which is the objective design, however I cannot find any solution and / or documentation to help me make this type of layout.
More specifically this is the scroll effect that I want to do, http://modern8.com/d5-process/
It should be noted that I have already tried with FullPageJS and I have not been able to recreate it, if you can see the effect consists of applying fixed and relative position according to the scroll but as I indicate, I do not know where to start.
I really appreciate the help you can give me.
The effect is the same as in pagePiling.js but pagePiling.js uses snap scroll so you'll snap to each section. There's no scrollbar.
The closer you can get with fullPage.js is by using the paid Parallax extension with autoScrolling: false (to avoid snap) and placing the whole content of the section inside the fp-bg element.
There's an article about it here.
https://alvarotrigo.com/blog/how-create-tumblr-website-effect/
I'm making a website and want a navigation bar that stays at the top of the screen. I can do this fine but when I scroll to top it goes above header. How do I get it to stop scrolling with the user before the top of the page? I have watched countless tutorials but none seem to work. I think I need JavaScript to unstick the bar at a certain height, but unsure how. Also how do I restick it when the user scrolls back down?
Yes, you will need JavaScript to handle this. It is not too complicated, but you will basically need to add an event handler for the scroll event on the window, and inside the handler you can check the scrollTop of the window to see how much has been scrolled. When it has been scrolled "enough" (usually the height of your header) you can then switch the position of the header to fixed.
You can see a demo about it on the excellent CSS Tricks, and there are many tutorials and plugins that can help with this.
Yes, as danwellman said, you need js.
I have a small code I used in my webpage.
// Highlight the top nav as scrolling occurs
$('body').scrollspy({
target: '.navbar-fixed-top',
offset: 51
});
You need a file like "scrolling-nav.js" or anything you prefer. And in your html, don't forget to call it.
// In the end or in the beggining you call your js file
<script src="...(filepath)/scrolling-nav.js"></script>
There are many more cool possible snippets you can find. This is really to keep the navbar fixed after the offset of '51'. You can also add the smoothed movement to the webpage section after selecting a menu button.. If you have a onepage website, for example. This would also be js.
Good luck. :)
I'll start by linking you what I'm talking about.
I'd like to know how to make such a scroll like that, you just need to scroll once and boom you'll get to the next section.
Thus, how to make a one page website (yeah, maybe I'll add some more sections but wanted to know what are the properties to do that)
This is what I mean by one page websites.
Try FullPage; it supports both vertical and horizontal sections.
There are lots of libraries available. I would suggest Fullpage for this kind of CSS. It will provide you some extra features like horizontal scroll within Vertical scroll which will make you site attractive.
Hope this will help.
You can use class for each section of your page and then by using of that classname and jquery you can do the same.For more information and demo you can check the link below.It may help you.
You can check the demo and solution below here the one page section scrolling is given in great way.
Check this demo
I am using fullPage.js on my site and for some reason, the normalScrollElements is not working as I expect it to. I have 5 sections on my site and I need to have normal scrolling for section2 which is Showroom. I used the normalScrollElements on that section and now the problem is that I cannot scroll down to the other sections(Contact, About). I don't know what code to put here, since it's basically normalScrollElements.
Here's a link to my site:
http://sabirmb.com/Parallax
Could anyone please explain to me what I'm doing wrong?
Thanks.
The problem has been fixed. Basically the only thing that I had to add was scrollOverflow:true as explained in the documentation.
For future reference, if you have a section that has more content inside than the screen viewport, you should use scrollOverflow:true and this will allow for the content to scroll in that viewport.
I saw a site a month or two ago that had anchors fixed to the right side of the page that would not scroll when the page was scrolled. That alone is not hard to do with CSS.
But on that site, the fixed anchors were dynamically generated based on the section headers in the page. And they were proportionately spaced down the right side of the page in relation to their position in the document.
In essence, it created a mini-map of the entire document, giving a visual overview of what was in the document, and the spacing between sections of the document, all within the current viewport. You could quickly see how large each section was in relation to each other. Maybe I should call it a table-of-contents instead of a mini-map.
I believe this was on a documentation page for an API of some sort. I think it worked really well for navigation, and want to build something like it for some documentation I need to do.
In a way, it reminded me of the minimap on the right side of Sublime Text 2, but only major headings were shown and they were depicted as buttons fixed to the right side of the page.
Unfortunately, I can't remember or find the site I saw it on. Has anyone seen an example of something like this? I'd love to see some examples before I start implementing it. Or do any tools exist for doing this, jquery plugins, etc?