Slide up window in HTML/JS - javascript

Im trying to add a button/tab on the bottom right corner of the page. That when clicked slides up a window. I've seen this somewhere but i can't get it to work.

I found my answer shortly after. If you're looking for the same, this thread might help:
HTML CSS/JS Bottom navbar Sliding Up

Related

How to scroll up to the bottom on a website?

My page consists of fullscreen sections (100vh), and I have made it possible to slide between the fullscreen sections, with the mousewheel.
It seems as it should, and you can scroll all the way down to the bottom and all the way up to the top of the page.
The problem is that when you get to the top of the page, it has to be able to scroll up again, and sliding up to the bottom.
I hope it makes sense.
I have searched a lot online, but I cannot find answers to how to do it.
How can I fix this problem?

Scrollbar on lightbox showing for just a moment;

Please take a look at this site: removed per request
When you click Learn More, the Fancybox lightbox window pops up and looks fine, but when you click the right arrow on the lightbox, a scrollbar shows up for just an instant (it reaches all the way to the top of the doctor's picture). This is happening on Chrome and Safari.
I can't figure out what code to write to not show that scrollbar. The content will never be long enough to need a scrollbar (except on mobile, etc). Another option would be to just have the scrollbar stop at the top of the content container (not go all the way up to the top of the dr's picture). Please help if you can; it would be much appreciated!! I'm a newb to jQuery/Javascript. Thank you!!
You can try to solve this with CSS. Set overflow: hidden on the container div. This will hide any content that overflows the container, so use with care.

How to scroll a part of the page when the mouse is over other parts of the page?

Please have a look at my sample page.
On that page notice the portion with the gibberish text. This is the "content part" which is meant to be scrolled. All other parts are supposed to be fixed.
If you move your mouse over the left navigation or the header and try to scroll, then naturally nothing happens.
How do I make the content part scroll even when the user's mouse is over the header or left navigation or any other fixed parts?
PS. I am trying to imitate Google Plus here. They seemed to have a scroll listener, but the Javascript code is too mangled for me to understand.
I was wrong in my previous conclusion that Google+ is using Javascript for this.
Yesterday broke down their site into pieces using Firebug. Now it is clear that they too are using position: fixed for fixed parts.
Here is my updated sample page. Notice that now we can use keyboard arrows too to move the page up or down. This page is not using any Javascript.

Fix a div when scrolling down a page and then un-fix

I am trying to make a sidebar div sit below a header secion, when you scroll down, it will turn into a fixed div and stay fixed until the bottom of the page, once it reaches a footer section, it will stick to the top of it and allow me to scroll down the footer area without seeing it anymore.
There is a perfect emaxple of what I am trying to describe on this site http://madebymany.com/blog/apples-aesthetic-dichotomy
In the left column, it sticks as you scroll down and then un-sticks at the bottom
I am looking for a good way to do this, hopefully an example or tutorial, I realize it is done with javascript changing the divs properties. I have tried searching but all I could find was old outdated articles over 5-6 years old and they only did half the job. I am not sure even what to call this feature?
That web site is using jQuery Scroll Follow.
Note that according to the jQuery Scoll Follow web site...
The Scroll Follow object will remain inside its immediate container.
... hence why the scrolling stops before the comments on your example web site; the element which is scrolling on the page is constrained inside of its parent <aside> element. You can check out the example.
You basically handle the page's scroll event and move the box around.
Most tutorials require jQuery, so get familiar with it. If you want a tutorial, here's a working one: http://designwoop.com/2011/01/how-to-create-a-jquery-sticky-sidebar/.
Why not dissect the code of that website too?

Looking for a script that will allow me to scroll content sideways

I'm trying to find some javascript code that I can embed on my website that will allow me to scroll content from left to right or right to left. This script here:
http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm
Has the basic functionality that I am looking for, but it scrolls content from top to bottom. I want to be able to scroll my content sideways and have it scroll when I hover over some arrows just like the above mentioned script does.
Does anyone know of anything that will work for me? Or perhaps it would be simple to modify the above mentioned script to scroll side to side. Thanks.
I don't have time to edit it for you but try to change the offsetHeight to offsetWidth and style.top to style.left;

Categories

Resources