We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Is there a way to process background images?
Below I've added some example of code that I've tried.
The only way that is working is the let nameImg = './img/image.png'; and put the variable in the inline style
<script> import Image from "svelte-image"; // import BgImage from '../static/img/shoe_prite.png'; // import UnderbgImage from '../static/img/under_BG.png'; let bgImage = './img/shoe_prite.png'; let underbgImage = './img/under_BG.png'; </script> <style> .main__container { display: flex; align-items: flex-end; justify-content: center; width: 300px; height: 250px; background-image: url("../static/img/shoe_prite.png"), url("./img/under_BG.png'"); background-repeat: no-repeat; background-position: center top, center; background-size: 100%; } </style> <div draggable="false" class="main__container" id="main__container" > <!-- style='background-image: url("{bgImage}"), url("{underbgImage}");' --> </div>```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Is there a way to process background images?
Below I've added some example of code that I've tried.
The only way that is working is the let nameImg = './img/image.png';
and put the variable in the inline style
The text was updated successfully, but these errors were encountered: