Transparent cards
+ ANIMATION :
+ Description :
This animation is displaying a card that can be used as a basis to show team member as exemple.
In order to achieve it you will find below the various codes to be used. Despite using Bricks builder, I tried to list up all the necessary steps to complete the animation to be the most universal as much as possible. Therefore I am close to what you will find in any IDE. For Bricks builder, please follow the HTML/CSS structure so you can add-up divs and give them CSS (be careful with the buttons and icons) instead of putting it into the code element in order to avoid FOUC as the code block is loaded lastly within the page priority list.
For CSS, please note that I am considering that you are using a builder hence: no margin/padding reset has been applied and the font is not defined.
Load Font Awesome library if necessary, please adapt according to your builder:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
HTML:
<section class="tc-section"> <div class="tc-ctn"> <p class="tc-title" data-text="SUBURB">SUBURB</p> <div class="tc-img-ctn"> <img src="images/P1150541.jpg" alt="tokyo" class="tc-img" /> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 1</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 2</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 3</p> </div> </div> <div class="tc-ctn"> <p class="tc-title" data-text="COUNTRY">COUNTRY</p> <div class="tc-img-ctn"> <img src="images/R0000553.jpg" alt="tokyo" class="tc-img" /> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 1</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 2</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 3</p> </div> </div> <div class="tc-ctn"> <p class="tc-title" data-text="CITY">CITY</p> <div class="tc-img-ctn"> <img src="images/R0012138.jpg" alt="tokyo" class="tc-img" /> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 1</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 2</p> </div> <div class="tc-txt-ctn"> <i class="tc-icon fa-solid fa-circle-check"></i> <p class="tc-txt">Item 3</p> </div> </div> </section>
CSS:
.tc-section { padding: 3rem; display: flex; flex-direction: row; align-items: center; background-color: #202020; justify-content: center; min-height: 100vh; width: 100%; } .tc-ctn { position: relative; width: 300px; height: 250px; margin: 3rem; padding: 2rem 1rem 3rem; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border-radius: 0.5rem; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset; transition: all 0.2s linear; } .tc-title { display: flex; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 2rem; z-index: 1; color: transparent; -webkit-text-stroke: 1px black; transition: all 0.6s linear; } .tc-img-ctn { display: flex; min-height: 120px; max-height: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-top: 2rem; z-index: 1; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset; } .tc-img { width: 100%; height: 100%; object-fit: cover; } .tc-txt-ctn { width: 100%; margin-top: 2rem; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1rem; transform: translateY(50px); z-index: 1; cursor: default; transition: all 0.4s linear; } .tc-icon { font-size: 1.2rem; color: transparent; -webkit-text-stroke: 1px black; transition: all 0.4s linear; } .tc-txt { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 1.2rem; color: transparent; -webkit-text-stroke: 1px black; transition: all 0.4s linear; } .tc-ctn:hover.tc-ctn:after { transform: translateX(0); } .tc-ctn:after { position: absolute; content: ""; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; border-radius: 0.5rem; background: #707070; transform: translateX(-100%); box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset; transition: all 0.25s linear 0.2s; } .tc-ctn:hover .tc-icon, .tc-ctn:hover .tc-txt { color: white; -webkit-text-stroke: initial; } .tc-ctn:hover { height: 450px; } .tc-ctn:hover .tc-image { opacity: 1; } .tc-ctn:hover.tc-ctn:before { transform: translateX(0); } .tc-ctn:before { position: absolute; content: ""; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0.5rem; background: #707070; opacity: 0.5; transform: translateX(100%); box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset; transition: all 0.25s linear 0.45s; } .tc-title::before, .tc-title::after { content: attr(data-text); position: absolute; color: white; -webkit-text-stroke: initial; } .tc-title::before { opacity: 0.5; transform: translateX(-300%); transition: all 0.25s linear 0.2s; } .tc-title::after { transform: translateX(300%); transition: all 0.25s linear 0.45s; } .tc-ctn:hover .tc-title::before, .tc-ctn:hover .tc-title::after { transform: translateX(0); } .tc-ctn:hover .tc-txt-ctn { transform: translateY(0px); } .tc-txt-ctn:hover .tc-icon, .tc-txt-ctn:hover .tc-txt { color: #9b6bf7; transform: scale(1.1); } @media only screen and (max-width: 1300px) { .tc-section { flex-direction: column; } }