Skip to content

kush-x7/product-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Product preview card component solution

Design preview for the Product preview card component coding challenge

This is a solution to the Product preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.


Links


What I learned

1. Learned how to show different images using css

<div class="card__image">
  <img
    src="./images/image-product-desktop.jpg"
    alt="card_image"
    class="desktopImage"
  />
  <img
    src="./images/image-product-mobile.jpg"
    alt="card_image"
    class="mobileImage"
  />
</div>
.mobileImage {
  display: none;
}

@media screen and (min-width: 600px) {
  .mobileImage {
    display: block;
  }
  .desktopImage {
    display: none;
  }
}

2. Leaned animation using Css


Useful resources

Releases

No releases published

Packages

No packages published