@arturpawlowski5
Posted
Hi,
I'm starting too with Dev Web but I already made this Challenge so hope can help a little bit.
To make it super simple you can try like this
With your background image, you can try to add 2 URLs with IMG to your one DIV or another container you use. Try to look at this code:
#example1 {
background-image: url(img_flwr.gif), url(paper.gif);
background-position: left top, right bottom;
background-repeat: no-repeat, repeat;
}
More here: w3schools
With this code, you will have the same time 2 IMGs in the Background.
Other way
I made in my Challenge similar to this what you made but I used vh and vw units, not px. This way size of Circles changes when you Change the size of the Viewport.
This is from my Challenge
.circles .circle_01,
.circles .circle_02 {
position: absolute;
-webkit-animation: 2s circles forwards;
animation: 2s circles forwards;
opacity: 0;
overflow: hidden;
}
.circle_01 {
top: -50vh;
left: -20vw;
-webkit-transform: translate(-30vh, -10vw);
transform: translate(-30vh, -10vw);
width: 50vw;
}
.circle_02 {
bottom: -50vh;
right: -20vw;
-webkit-transform: translate(30vh, 10vw);
transform: translate(30vh, 10vw);
width: 70vw;
}
Hope this helps.
@iammatheus
Posted
@arturpawlowski5
Thanks for the feedback!
It sure helped me.
About vw and vh, I tried to use it, however I found a bug where the size of the images exceeded the screen, but I will reorganize my code and try from scratch again, using your code as an aid.
Thank you for your help! 😊
@arturpawlowski5
Posted
Try to use overflow: hidden
when you have problems with IMG exceed Screen, DIV etc.
More here w3school