Skip to content

Commit 97ceed8

Browse files
committed
init
0 parents  commit 97ceed8

File tree

8 files changed

+3059
-0
lines changed

8 files changed

+3059
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Pop Img
2+
3+
A simple jQuery plugin for poping imgs in articles without any additional css or image.
4+
5+
There are no settings in this plugin, so that making it much simpler, just 80 lines code.
6+
7+
### Usage
8+
9+
```javascript
10+
$(".container img").popImg();
11+
```
12+
13+
The effect is poping a half opacity layer fixed full of webpage, then show the target image in it's original size.
14+
15+
Click any area will close the img show. And you can press the `ESC` key to clear screen.
16+
17+
> Attention: I set a very large `z-index` for layer and img.
18+
19+
### Demo
20+
21+
click here -> <http://demo.barretlee.com/pop-img/>

0 commit comments

Comments
 (0)