You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# simplebox.js
2
2
3
-
simplebox.js is a lightweight lightbox plugin (936 bytes) that is easy to modify or extend to fit your needs. This plugin is intended to be a quick, responsive, efficient.
3
+
simplebox.js is a lightweight lightbox plugin (~936 bytes) that is easy to modify or extend to fit your needs. This plugin is intended to be a quick, responsive, efficient.
4
4
5
5
The idea behind this plugin was to make the process of setting up a lightbox painless. My experience with finding and setting up lightbox plugins has been pretty bad. The plugins I've come across almost always have too many features. simplebox.js is designed to have just one feature: lightboxing. It's responsive out of the box and allows only a few crucial settings.
6
6
@@ -41,10 +41,8 @@ $('.slb').simplebox({
41
41
```
42
42
You can use `postfix` and `hqClass` options to customize the path to the image used in the pop-up. For every image defined as `<img src="[initial path].[extension]" class="slb [hqClass]" alt="[alt]">` simplebox will use `<img src="[initial path][postfix].[extension]" class="slb" alt="[alt]">`. Notice that you shouldn't use `hqClass` with images that don't have a version with the postfix.
43
43
44
-
Simplebox will keep the values of `srcset` and `alt` attributes in the pop-up image.
44
+
Also, simplebox keeps the values of `srcset` and `alt` attributes in the pop-up image as well so you can do some cool things with `srcset` if you need to as well!
45
45
46
-
## In the Wild
47
-
48
-
-http://ratiksharma.com/blog/
46
+
---
49
47
50
48
If you are using this plugin and want your product to be listed here, hit me up on @Ratik96 on Twitter!
0 commit comments