Reputation: 2467
I'm trying to get this plugin working but I'm not exactly sure how it works. Github
It comes with a lot of files, but do I need all of them? That's the part that is overwhelming me the most.
So let's say I set up a simple site as so:
-css
-style.css
-js
-main.js
-index.html
In a file structure like this, how would I implement this plugin? Which files are required? How do I initalize it? The docs gives me some info, but not enough for a beginner.
Any help would be so much appreciated.
Upvotes: 0
Views: 66
Reputation: 12649
Just try
<link rel="stylesheet" href="dist/smooth-scrollbar.css">
<script src="dist/smooth-scrollbar.js"></script>
of course the location before dist
would be where you saved your plugin.
e.g. smooth-scrollbar/dist/smooth-scrollbar.js
Upvotes: 1