Unique Portfolio Card Using CSS

HTML

				
					<div class="portfolioCard">
        <div class="imgBackground">
            <div class="imgContainer">
            <img data-lazyloaded="1" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAwIiBoZWlnaHQ9IjIwMDMiIHZpZXdCb3g9IjAgMCAzMDAwIDIwMDMiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHN0eWxlPSJmaWxsOiNjZmQ0ZGI7ZmlsbC1vcGFjaXR5OiAwLjE7Ii8+PC9zdmc+" width="3000" height="2003" decoding="async" data-src="https://plus.unsplash.com/premium_photo-1664474619075-644dd191935f?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8aW1hZ2V8ZW58MHx8MHx8fDA%3D" alt="">
            <div class="detailsContainer">
                <div class="leftAndRight">
                    <div class="detailsLeft">
                    <p class="headClass">Client</p>
                    <p class="headName">Softorax</p>
                    </div>
                    <div class="detailsRight">
                    <p class="headClass">Year</p>
                    <p class="headName">2025</p>
                    </div>
                </div>

                <div class="detailsDivider"></div>

                <div class="btnControl">
                    <button>Have A Look</button>
                </div>
                
            </div>
        </div>
        </div>
        
        <div class="titleContainer">
            <h1>Professional Photography Service</h1>
            <div class="tagContainer">
                <p>Photography</p>
                <p>Urban</p>
                <p>City</p>
            </div>
        </div>
    </div>
				
			

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

The Best WordPress Web Development Agency

Schedule a call

Let us get back to you