-
Is it possible to create an example for vanilla js static page? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
@pickethic Good day :) I've created a simple example here: https://stackblitz.com/edit/vitejs-vite-jcz9h3 |
Beta Was this translation helpful? Give feedback.
-
Hi thanks a lot :) |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot again. import { OverlayScrollbars } from "./scroll.js";
// initialize overlayscrollbars
OverlayScrollbars(document.body, {
scrollbars: {
theme: 'os-theme-light',
},
}); while the scroll.js is actually this file: It works and is satisfying to me the way it is, but I'm pretty sure there are also other people trying to wrap them head around how to make this version work: Not really sure how to implement the cdn version from the docs part "Manual download & embedding" which would be probably more appropriate way to implement it in plain html, css, js static site. I think the most basic example ever, even single html file, using the CDN version with manual embedding would be very useful. I would gladly help in creating that. |
Beta Was this translation helpful? Give feedback.
@pickethic I've added an Browser Example to the examples as well as an corresponding link to it in the README in the
Manual download & embedding
section.