Skip to content

Instantly share code, notes, and snippets.

@Terieyenike
Created May 25, 2022 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Terieyenike/2c5c0ce4ecfeda6e45ebbae75841d230 to your computer and use it in GitHub Desktop.
Save Terieyenike/2c5c0ce4ecfeda6e45ebbae75841d230 to your computer and use it in GitHub Desktop.
.img {
max-width: 100%;
display: block;
object-fit: cover;
}
.main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
gap: 2rem;
padding: 2em 0;
}
.container {
max-width: 75rem;
margin-inline: auto;
width: 85%;
}
.card {
overflow: hidden;
}
.card .img {
transition: all 0.3s ease;
width: 100%;
}
.card:hover img {
transform: scale(1.5);
cursor: pointer;
}
.title {
background: #27251f;
color: #ecf0f1;
padding: 1em;
text-transform: uppercase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment