There is a scrollable background image that takes up the whole page. There is also a div
present at the bottom of the page. If I wish to scroll the image, I can only do so when the mouse-pointer rests on the image. I can’t scroll if it is on the bottom div
. Is there a way to make the image scrollable from the botttom (or anywhere)?
Here is a JSfiddle describing what I have done so far and what I require.
2
Answers
You can apply
pointer-events: none;
to.bottom
. It might look something like this:Since #bottom is not in the scrolling area, you will need some javascript to
This can be achieved with something like that :
JSFiddle > https://jsfiddle.net/ash_uncover/hgnj0rq2/2/