card flip animation using css and jquery

How we can create a flipping profile card using HTML CSS JS? Solution: See this Card Flip Animation Using CSS and jQuery, Flipping Profile Cards.

Previously I have shared some cards related programs, but this is a profile card with a flip animation. Basically, A card is a small rectangular or rounded-rectangular module with images and text. It is an entry point for users to learn more details by clicking the link. And a profile card contains simply an image, name, small description, and other sections like skills, age, etc. When a card completely rotates and shows their backside, then its called flip effect.

Today you will learn to create flipping profile cards. Basically, there are 3 cards and each card contains an image in the whole box and title, description at the bottom side of the card. First, you will see only the image, but when you will hover on it then the title and des will appear. And when you will click on the card, then it will flip to the backside and show the image in circle and cover, and some other texts. There I have used dog profiles, so there are available names & breeds on the front side, and age, weight, and color on the backside.

So, Today I am sharing Card Flip Animation Using CSS and jQuery. There I have used HTML to create the layout, CSS for styling, and jQuery for flip function in this program. This program can be used for showing testimonial or employee profiles with their details. You can use this flip card program on your website as anything you want to show.

If you are thinking now how this flipping card actually is, then see the preview given below.

Preview Of Flipping Profile Cards

See this video preview to getting an idea of how these profile cards look like.

Live Demo

Now you can see this program visually, also you can see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

Card Flip Animation Using CSS and jQuery Source Code

Before sharing source code, let’s talk about it. First I have created the main div named container and placed all elements inside it. Inside the container div, I have placed 3 divs sections for 3 cards. Each card div section contains many div, list,  and other tags like a hyperlink. Inside a single card, there is a title, description, image in the front side and 2 images profile and cover, texts in the backside. Also in the HTML file, I have linked other files like CSS, JS, and jQuery CDN.

Now using CSS I have placed all the items in the right place, as you can see in the preview. With CSS first I gave basic values like size, position, margin, padding, etc to the elements. There I have used flex display to create the layout, and used other flex commands. To create a 3D effect while flipping I used transform-style: preserve-3d; command. I have used @keyframe command to create some animations and @media query for responsive design.

jQuery handling here the flip toggle effect in this program. There I have used JS if{} else{} statements to declare functions, and it adding and removing class names according to user’s action. Left all other things you will understand after getting the codes, I can’t explain all in here in writing. For creating this program you have to create 3 files. First file for HTML, second for CSS, and the third file for JavaScript.

Follow the steps to creating this program without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

function.js

The final step, create a JavaScript file named ‘function.js‘ and put the codes.

That’s It. Now you have successfully created Card Flip Animation Using CSS and jQuery, Flipping Profile Cards. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here