Skip to content

Added ability to specify sticker image in attribute#6

Open
antriver wants to merge 4 commits intocmiscm:masterfrom
antriver:img-attr
Open

Added ability to specify sticker image in attribute#6
antriver wants to merge 4 commits intocmiscm:masterfrom
antriver:img-attr

Conversation

@antriver
Copy link
Copy Markdown

@antriver antriver commented Nov 1, 2015

Instead of having to specify the "background-image" for every sticker in the CSS, this lets you define it on the sticker element like this:

<div class="sticker" data-sticker-img="http://img.ctrlv.in/img/15/11/01/5635d779dd3e4.png"></div>

That url then gets set as the background-image style on the .sticker-img element that is created inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant