Skip to content

JavianTheGreek/NFT-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - NFT preview card component

Design preview for the NFT preview card component coding challenge

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.

Table of contents

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.

Table of contents

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

I learn about the image hover, I had a idea how to excute but there were some issues. I went online for solutions.

To see how you can add code snippets, see below:

<div class="card-head">
  <img src="./images/image-equilibrium.jpg" alt="">
  <div class="icon">
    <img src="./images/icon-view.svg" alt="">
  </div>
</div>
.card-head>.icon {
    position: absolute;
    background-color: hsl(178, 100%, 50%, 60%);
    width: 100%;
    height: 300px;
    border-radius: 10px;
    top: 0%;
    opacity: 0;
    z-index: 1;
    transition: opacity .2s ease-in-out;
}

.card-head>.icon:hover {
    opacity: 1;
    cursor: pointer;
}

.card-head>.icon>img {
    position: absolute;
    top: 48%;
    left: 50%;
    width: 60px;
    transform: translate(-50%, -50%);
}

}

Continued development

I will contiune my reasech on image hover and hsl with opactiy.

Useful resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published