javascript – Scroll on hover and text leaping-ThrowExceptions

Exception or error:

It is possible to scroll behave like a fixed element. I would like to scroll in the element covered the content, not moving all of its width. The problem occurs when the box has the overflow: hidden, and :hover change overflow to auto.

as it is, and how I wants it to be

JSBin for a better understanding of the problem,css,output

I’m not interested solutions using jquery

How to solve:

I solved the problem. I don’t use a solution of the commentary added by @DaniP, becouse my problem was more complex. I added a solution if someone had a similar problem. I added a wrapper div, which has position: absolute; and fixed width.
For a better understanding JSBin:,css,output

Leave a Reply

Your email address will not be published. Required fields are marked *