- Propagation
JavaScript has Propagation, so when I want to make a func to click on card and pop-up share card disappeared, it didn't work.
I read doc and using event.stopPropagation();
to solve this.
shareBtn.addEventListener("click", (event) => {
event.stopPropagation();
shareBoard.classList.add("up");
});
- width: 100%
I found using width:100%
rather than max-width: 100%
on this situation is better.
add object-fit
and object-position
.card__img img {
width: 100%;
height: 200px;
object-fit: cover;
object-position: center;
}
What specific areas of your project would you like help with?
Can I only make the pop-up display outside the card by canceling overflow: hidden
?