We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5118d2 commit e130558Copy full SHA for e130558
1 file changed
README.md
@@ -139,6 +139,16 @@ where the first argument is a selector to a gallery (or galleries) containing `a
139
140
To use captions put a `title` or `data-caption` attribute on the `a` tag.
141
142
+Note: if you import baguetteBox using the `<script>` tag, remember to run it after the document has loaded:
143
+
144
+```html
145
+<script>
146
+window.addEventListener('load', function() {
147
+ baguetteBox.run('.gallery');
148
+});
149
+</script>
150
+```
151
152
## Customization
153
154
You can pass an object with custom options as the second parameter.
0 commit comments