background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinHkQqlrd_uwgAU2u7v7tWR3dUJJFcDrsqdpTlQQa4ckzR9i18B6K3R6dBgcRGDvBg8CGw4MWa1GUCns2giX4DNhnAd3gPG4u6oQCUoDixnrmO3zCP1WaSDlDLYdt3Ngd-SLtFi6zARewRPDe_GFT5XAb0iuauri9v1CffnLjWzJ-E3KyxB7pPzSecgmwD/s16000/20241031_134257.jpg'); /* Replace with your image URL */
background-size: cover;
background-position: center;
color: white;
}
/* Back side with framed full-size image */
.flip-card-back {
background-color: #fff;
color: #333;
transform: rotateY(180deg);
overflow: hidden;
padding: 0;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Framed full-size image on the back side */
.frame-image {
width: 90%;
height: 70%;
margin: 15px;
background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinHkQqlrd_uwgAU2u7v7tWR3dUJJFcDrsqdpTlQQa4ckzR9i18B6K3R6dBgcRGDvBg8CGw4MWa1GUCns2giX4DNhnAd3gPG4u6oQCUoDixnrmO3zCP1WaSDlDLYdt3Ngd-SLtFi6zARewRPDe_GFT5XAb0iuauri9v1CffnLjWzJ-E3KyxB7pPzSecgmwD/s16000/20241031_134257.jpg'); /* Replace with your image URL */
The div with class flipcard contains everything related to the 3D card, setting up its dimensions and perspective.
Inside flip card inner is the container that rotates during the flip. It holds both the front and back content.
The flip card front displays a background image and serves as the front side of the card.
The flip card back contains a framed version of the front image and links for YouTube, Telegram, and contact. These links are organized in two rows using link options and link row.
2. CSS Styling:
Basic Body Styles: The page centers the card on the screen with a neutral background color and uses the Arial font.
Card and Flip Effect:
flip card sets the width, height, and 3D perspective to create depth.
flip card inner applies a transform and transition to create a smooth rotation. The transform style: preserve 3d property ensures the 3D effect is maintained during the flip.
Both flip card front and flip card back use back face visibility: hidden to hide the reverse side during the flip.
Front and Back Side Content:
The flip card front uses a background image to cover the entire side.
.flipcardback is rotated by 180 degrees initially so that it appears when the flip card inner is flipped.
The framed image on the back is styled with padding and shadow for a "frame" effect.
Links:
The links in link options have specific styles, colors, and hover effects for a buttonlike appearance.
3. JavaScript:
Functionality:
A mouseover event listener on flipCardInner triggers a 180degree rotation on hover, showing the back side.
The flipToFront() function resets the rotation when the framed image on the back side is clicked, flipping the card back to the front.
Summary
This code creates an interactive 3D flip card effect where:
Hovering over the card flips it to reveal the back side.
Clicking on the framed image flips the card back to the front.
The back side displays social and contact links in two rows, styled as buttons.
This approach is ideal for displaying basic information and links with a visually engaging effect.
"This Content Sponsored by Genreviews.Online
Genreviews.online is One of the Review Portal Site