-
Notifications
You must be signed in to change notification settings - Fork 52
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
Make easy use a different selector #17
Comments
Hey @Kikobeats ! Thanks for your comment. But you're right ! We do uses classes and ids ! Thanks for your issue ! |
@LukyVj I understand your point, but you have to think that a lot of people want to use this library for current websites under production. How do you make easy compatible with whatever website? That's the point! |
I agree. But in theory, if you follow the documentation, everyone could use it on their own websites. Thanks for your precious contributions tho ! |
So, this will be shipped in the next version (1.2 ) of colorify. Now, it will work with the following markup and JS <div id="colorify-container">
<img src="path/to/image.png" />
</div> colorify({
container: 'colorify-container' // id only
}); |
sounds amazing! :-) |
I like the library, but I don't like how to select the container of the image.
In the documentation you write a markup like:
but in the real worlds we use class and ids!
This throw an error:
IMO, a better solution is pass to querySelectorAll the container selector.
The text was updated successfully, but these errors were encountered: