An open API service indexing awesome lists of open source software.

https://github.com/vedsmith92/image-wall


https://github.com/vedsmith92/image-wall

image-gallery jquery

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# image-wall

Turn this:

![](https://raw.githubusercontent.com/vedsmith92/image-wall/master/before.jpg)

Into this:

![](https://raw.githubusercontent.com/vedsmith92/image-wall/master/after.jpg)

## Example

[See demo here](https://rawgit.com/vedsmith92/image-wall/master/test/index.html)

## About Image-Wall

0. Require jQuery >= 1.12.4
0. Sequentially image order.
0. Auto re-render when window resize (full responsive) or image loaded.
0. Support any/custom data attributes.
0. Support CSS (with media queries).

## Getting started

### Installation

Bower

```
$ bower install image-wall
```

### Usage

Include files:

```

```

Call Method:

```
$(function() {
$('.image-wall').imageWall();
});
```

HTML:

```





...

```

Example CSS Styles:

```
body {
margin: 0;
padding: 0;
background-color: #000;
}

.image-wall .row {
height: 200px;
}

.image-wall, .image-wall .row .column {
padding: 8px;
}

.image-wall .row a {
border-radius: 2px;
background-color: #111;
}

.image-wall .row a:hover {
opacity: 0.5;
}

@media (max-width: 1024px) {
.image-wall, .image-wall .row .column {
padding: 4px;
}

.image-wall .row {
height: 100px;
}
}

```

### Methods

Call this to re-render the wall:

```
$('.image-wall').imageWall();
```

## Browser support

- Chrome 53+
- Firefox 48+
- Internet Explorer 11+
- Edge 14+
- Opera 10+
- Safari 9.1+

As a jQuery plugin, you also need to see the jQuery Browser Support.

## License

[MIT](http://opensource.org/licenses/MIT) © [Ved Smithiprechawongse](https://github.com/vedsmith92)