Unique Portfolio Card Using CSS
HTML
Client
Softorax
Year
2025
Professional Photography Service
Photography
Urban
City
CSS
body {
background: #130A20;
height: 100vh;
width: 100vw;
align-content: center;
justify-items: center;
}
.portfolioCard {
display: flex;
background: #130A20;
flex-direction: column;
align-content: center;
justify-items: center;
margin: 0;
gap: 10px;
}
.detailsContainer {
box-sizing: border-box;
display: flex;
flex-direction: column;
position: absolute;
left: 0;
bottom: -16%;
background: rgba(19, 10, 32, .7);
backdrop-filter: blur(10px);
width: 100%;
padding: 10px 20px;
gap: 10px;
transition: 0.5s;
}
.imgBackground {
display: flex;
flex-direction: column;
width: 300px;
background: #2A2237;
justify-items: center;
padding: 5px;
border-radius: 5px;
align-content: center;
cursor: pointer;
}
.imgContainer {
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
border-radius: 5px;
background: #B47CFD;
}
.imgContainer img {
width: 300px;
height: auto;
align-self: center;
border-radius: 5px;
filter: grayscale(100%);
opacity: .7;
transition: 0.5s;;
}
.imgContainer:hover img {
filter: grayscale(0);
opacity: 1;
scale: 1.1;
}
.imgContainer img:active {
scale: 0.99;
}
.detailsContainer:hover {
bottom: 0%;
}
.leftAndRight {
box-sizing: border-box;
width: 100%;
display: flex;
justify-content: space-between;
}
.detailsDivider {
background: rgba(255, 255, 255, .2);
width: 100%;
height: 1px;
}
.btnControl button {
background: linear-gradient(90deg, #BB7DF8 0%, #FA7FC7);
border: none;
border-radius: 50px;
padding: 5px 15px;
color: #FFFFFF;
font-family: 'Oxygen', sans-serif;
font-size: 8px;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 1.5px;
cursor: pointer;
transition: 0.2s;
}
.btnControl button:active {
scale: 0.9;
}
.detailsContainer p {
margin: 0;
font-family: 'oxygen', sans-serif;
font-size: 9px;
font-weight: 600;
}
.detailsLeft, .detailsRight {
display: flex;
flex-direction: column;
gap: 5px;
}
.headClass {
color: #FA7FC7;
}
.headName {
color: #FFFFFF;
}
.titleContainer h1{
margin: 0;
color: #FFFFFF;
font-family: 'oxygen', sans-serif;
font-size: 18px;
font-weight: 500;
}
.tagContainer {
display: flex;
gap: 5px;
}
.tagContainer p {
color: #9f9f9f;
font-family: 'oxygen', sans-serif;
font-size: 8px;
padding: 2px 7px;
background-color: #2A2237;
border-radius: 50px;
}
Final Result
Client
Softorax
Year
2025
Professional Photography Service
Photography
Urban
City

