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

https://github.com/m4b/silicon-image

Displays a rasterized binary image with `silicon-image-behavior`, to update binary offsets via mouse movement, and etc.
https://github.com/m4b/silicon-image

Last synced: 3 months ago
JSON representation

Displays a rasterized binary image with `silicon-image-behavior`, to update binary offsets via mouse movement, and etc.

Awesome Lists containing this project

README

          

# ``
Displays a rasterized binary image with `silicon-image-behavior`. You need to provide your own containing block, as the element has `absolute` positioning so that other images can be stacked.

I suggest something like this if you've got it wrapped in a `

`, which itself is in a flexbox:

```css
div {
flex: 1 1 0;
width: 412px;
overflow-y: scroll;
position: relative;
background-color: grey;
margin-bottom: 8px;
}
```

or something like this div, if no flexbox:

```css
div {
overflow-y: scroll;
height: 200px;
width: 412px;
position: absolute;
background-color: grey;
}
```

Example:

```html

```

As the mouse moves over the image, `offset` is updated, so listen for an `offset-changed` event, or two-way data-bind to `offset` if you're using Polymer.

See the [documentation](http://m4b.github.io/silicon-image) for more information.

# Install

Via bower:

`bower install silicon-image`

As with all Silicon Elements, this requires Polymer, and the webcomponents polyfill (for now).

Example:

```html

```