-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support background-image #2
Comments
+1 |
1 similar comment
+1 |
@huwd yeah right now it replaces the src attribute, a similar thing would need to be done but for background image. the code would just set el.style.backgroundImage to what it would have set to src. |
:) Thought I'd try and do a pull request but after some fiddling on codepen I realise I'm outta my depth.js Is there any chance the solution you describe above could also work at passing in alternative sass variables? Using bourbon neat currently got my |
Ahah well thanks for trying 🐃 It definitely should if the js was implemented for bg image. I guess instead of using a data attribute then, it !might! make sense to pop the tiny-res into their own css classes and have the js read the tiny-res from them. That would also have the added benefit that you could cache that file for the images which would be pretty neat. |
+1 |
No description provided.
The text was updated successfully, but these errors were encountered: