You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already used this polyfill and it worked great when using the data attribute.
Would it be possible to also include the possibility to use it for arbitrary selectors without specifying the data attribute?
Sometimes there are cases, especially in a CMS, where we can only change a class or a class from an outside element.
It would be great if we could use it for example like this
objectFitPolyfill('.selector .to .image)
// or jQuery version
$('.selector .to .image').objectFitPolyfill()
Thanks, Razrael
The text was updated successfully, but these errors were encountered:
Hi there
First thank you for the great work!
I already used this polyfill and it worked great when using the data attribute.
Would it be possible to also include the possibility to use it for arbitrary selectors without specifying the data attribute?
Sometimes there are cases, especially in a CMS, where we can only change a class or a class from an outside element.
It would be great if we could use it for example like this
Thanks, Razrael
The text was updated successfully, but these errors were encountered: