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

How to add CSS object-fit Properties? #46

Open
jdgaravito opened this issue Jan 30, 2020 · 2 comments
Open

How to add CSS object-fit Properties? #46

jdgaravito opened this issue Jan 30, 2020 · 2 comments

Comments

@jdgaravito
Copy link

Hi, i'm unable to use CSS object-fit Properties. how can i use in Svelte-images?

@artemjackson
Copy link

<script>
  import Image from "svelte-image";
</script>

<Image class="cool" src="fuji.jpg">

<style>
  :global(.cool) {
    object-fit: cover;
  }
</style>

@jdgaravito
Copy link
Author

thanks , it will be good to have this in the readme file

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