DEV Community

Discussion on: How I Developed the Nintendo Switch Game Store UI using CSS Grid

Collapse
 
jamesthomson profile image
James Thomson

Nicely done, works great responsively. My only suggestion would be to place the :hover/:focus on the grid-item-container so that the background effect doesn't un-trigger when hover over text.

.grid-item-container {
    position: relative;
    overflow: hidden;

    &:hover .grid-item, &:focus .grid-item {
      transform: scale(1.08);  
    }
  }

Updated Codepen: codepen.io/getreworked/pen/zYGWBde

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Two more suggestions to match the original:

  • Use cursor: pointer on the container.
  • Add a title attribute to each card.
Collapse
 
teklooncheah profile image
Tek Loon

Thanks for the feeedback

Collapse
 
teklooncheah profile image
Tek Loon

Thanks for the feedback.