Sometimes you might need to animate some content with JavaScript, such as scroll content within a div.
Well, this is the section for you because we're going to be showing you how you can create a content
scroller snippet using JavaScript.
So what it does is it applies JavaScript to the elements and listens for different events.
So whenever you move over the scrolling text, it'll stop.
So it's listening for most events as well as you can update the scroll speed.
Let me show you.
So we've got our content scrolling.
We've got some information as to our speed, our X or Y position as well, so we can stop it whenever
we hover over it as well.
We can stop it on a click and we can start it again.
There's a bunch of different options that we're going to be exploring throughout the lessons that are
coming up.