sneas / img-comparison-slider

Image comparison slider. Compare images before and after. Supports React, Vue, Angular.
https://img-comparison-slider.sneas.io
MIT License
657 stars 47 forks source link

jquery support #106

Closed robgalvinco closed 1 year ago

robgalvinco commented 1 year ago

Is there anyway to get this to work on an HTML page that uses jQuery?

sneas commented 1 year ago

This library should not conflict with jQuery. Here are installation steps: https://github.com/sneas/img-comparison-slider#html

robgalvinco commented 1 year ago

Thanks for quick reply - is there some method to initialize it? I placed code on a page and nothing happened

sneas commented 1 year ago

No, this library implements Web Components standarts, thus there is no need in a special initialization function to be called (in fact, there is no such a function).

Perhaps, I can help you to resolve the problem if you show me the non-working example.

sneas commented 1 year ago

Here is the the CodePen with a working example https://codepen.io/sneas/pen/JjBoPEO