Questions tagged as 'rolamento'

1
answer

How to stylize the scroll bar?

Good, I have wasted some time looking for solutions to this but I do not find it, I have a scrollbar and liked to shrink its size. Can someone point me to a site or tell me what it takes to make this possible: Thank you     
asked by 12.06.2015 / 16:04
3
answers

How to keep the scroll of the element always in the bottom

Consider the following example I made here: $("#add").click(function() { $("#wrap ul").append('<li class="new">Teste</li>'); $("li.new").slideDown('slow', 'easeOutBounce'); }); link How can you fix it by clicking on...
asked by 23.02.2014 / 19:55
2
answers

Discover the position of the Scroll of a certain object

Is it possible to know the position of the scroll of a given object through Jquery or pure Javascript? I tried var posobj = $("#meuobjeto_id").scrollTop(); However, the value obtained is always 0. Any idea? I want the user to go through...
asked by 19.11.2014 / 19:48
1
answer

How to put the scrollbar inside the body?

I styled the scrollbar of my website for webkit, and I put the background of the track as transparent, however I would like the thumb to overlap the body content, simulating a position absolute effect, and the body 100% without leaving the paddi...
asked by 15.12.2016 / 14:16
2
answers

Determine the direction of the scroll in an element

The code below aims to detect the direction of scrolling in a specific element: var control = 0, lastScrollTop = 0, element = document.getElementById('idDoElemento'); element.onscroll = function() { var scrollAmt = element.scrollTo...
asked by 02.04.2015 / 19:22
2
answers

Limit scrollbar according to div size

Is there any way to limit the page%% by size (height) of a barra de rolagem ? Let's say I have a site like any other, but when I open a floating% 1000px height, I want the div of the mouse to hang when it reaches the end of thi...
asked by 15.12.2014 / 19:53
1
answer

Scroll in div if necessary

I have the following div on my page html <div id="divContent" class='content'> Bem vindo ao meu site <br /> 1 index index index index index index index index <br /> 2 index index i...
asked by 19.01.2016 / 13:15
1
answer

Smooth scrolling on page

I would like to know how I can do that once I click the link of a page in the main menu, the page will gently scroll to the desired page that was clicked? Example: link I wanted an example using links, there is a question using buttons h...
asked by 06.07.2014 / 06:31
1
answer

Is there any way for a div to take on the role of scroll?

I have the following code: $("#scroll").draggable({ axis: "x", scroll: true, containment: "#area" }); .area{ position: absolute; width: 1010px; height: 100px; margin-top:10px; margin-left:10px; overflow-x: auto; overflow-y...
asked by 24.06.2015 / 06:52
1
answer

How to enable and disable automatic scrolling in a chat?

I'm having second thoughts about implementing this feature. I have a link that does this, type enable and disable automatic scrolling. For a better understanding, access JSFIDDLE below: JSFIDDLE EXAMPLE     
asked by 14.01.2015 / 14:35