Skip to content
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

Does it work with SVG elements? #349

Open
ghost opened this issue May 24, 2022 · 2 comments
Open

Does it work with SVG elements? #349

ghost opened this issue May 24, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented May 24, 2022

Hi.. I was wondering if this component could work with SVG elements? Ive been trying with not much luck.. maybe I'm doing something wrong..
Ive been using it with png images but my images get blurry when too big or small..
thanks!

@TitanFighter
Copy link
Contributor

TitanFighter commented May 25, 2022

Update "width" and "height" properties of your svg (I assume your svg inside <img> tag) and everything should work.

@lucianobosco
Copy link

Yes it does. Just be aware that SVG will keep always aspect ratio in case of resize.

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

No branches or pull requests

2 participants