I appreciate these comments so much. I made this video for a friend and he was the only person I ever expected to watch it. It's been a really happy surprise that other people have found it and learned from it.
the drawback of using content to Inside div or you could say scroll through the div by overflowing to auto, is that I have trouble putting the scroll effect with javascript because javascript only targets the scroll in the body, not the div, maybe this could be tweaked in some way but it's still too minimal a tutorial to put that into place, so I hope can there be more tutorials for javascript to receive a scroll effect with target content to inside div, scroll div or scroll from auto overflow which is applied to div For those of you who don't understand what I mean, here's a little example.
I don’t completely understand, but you can choose which element to target with JavaScript. Put an id on any div, and you can then use ‘document.querySelector("#my-div")’ to target events inside it.
@@kbutube I've updated the comments to make it clearer for you for my purposes you can see there are 2 code samples, the first is the code example inside the content div the second is outside the content div, and and JavaScript can only use the outside content div method because it tends to use the default scroll or body scroll
3 years later and still insanely helpful. Crystal clear explanation. Thank you!!! 🙏🏼
I appreciate these comments so much. I made this video for a friend and he was the only person I ever expected to watch it. It's been a really happy surprise that other people have found it and learned from it.
@@kbutube Aww, that's awesome!!
Thank you so much man, I have been looking for this layout for a long time. Great video!
Very helpful. thanks!
Thanks, you just saved my time, this is just what i need🙏🙏🙏
bro video was very helpful to me. thank you so much
You’re welcome! I made this to help a friend and it’s made me really happy that other people appreciate it.
Very helpful thanks
Thank you
the drawback of using content to Inside div or you could say scroll through the div by overflowing to auto, is that I have trouble putting the scroll effect with javascript because javascript only targets the scroll in the body, not the div, maybe this could be tweaked in some way but it's still too minimal a tutorial to put that into place, so I hope can there be more tutorials for javascript to receive a scroll effect with target content to inside div, scroll div or scroll from auto overflow which is applied to div
For those of you who don't understand what I mean, here's a little example.
I don’t completely understand, but you can choose which element to target with JavaScript. Put an id on any div, and you can then use ‘document.querySelector("#my-div")’ to target events inside it.
More here: developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop#scrolling_an_element
@@kbutube I've updated the comments to make it clearer for you for my purposes you can see there are 2 code samples, the first is the code example inside the content div the second is outside the content div, and and JavaScript can only use the outside content div method because it tends to use the default scroll or body scroll
And thanks for the response any way will be accepted
somehow the entire website is scrolling instead of only the content, I used the same code that works in the codepen.
If you link me to a CodePen or website of your own I can take a look.
Thank you