Skip to content

demense/nft-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - NFT preview card component solution

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

Screenshot

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

CSS image overlay

.main-image {
    width: 303px;
    height: 303px;
    border-radius: 10px;
    margin-bottom: 23px;
    opacity: 1;
    display: block;
    transition: .5s ease;
    backface-visibility: hidden;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 154px;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%)
  }

  .background {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 303px;
    height: 303px;
    border-radius: 10px;
    background-color: hsl(178, 100%, 50%);
    opacity: 0;
  }
  
  .image-container:hover .middle {
    opacity: 1;
  }

  .image-container:hover .background {
    opacity: 0.5;
  }

My account on Frontend Mentor

@demense

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published