CSS profile card

Would you like to create a profile card with CSS that will display a 3D cube box animation on hover? Then this CSS animation example is a perfect fit for that. This snippet will have a plain image on one side and image-related information on another side. When the image will be hovered, the image div will be animated like a cube box and the information on the other side will come in front of us. Removing the hover will return it to its previous state. The Video tutorial below will demonstrate the step-by-step process of making it. Consider watching it before collecting the source code. It will help you comprehend the code. You can subscribe to Our Youtube Channel if you like our content.




I hope you have watched the video tutorial.  Profile Cards are a simple way to introduce someone on a website. CSS cards are a way for web developers to quickly and easily create custom website elements. CSS cards can be used to quickly add visual interest to a website, and make it look more professional and modern. In the HTML Part, We have taken the container named 'wrapper'. Three anchor tags with the name 'box' have been taken in them. Two more divs have been taken inside the 'box-content' div. Each divs are given a common name 'sides' and two different names 'side-1' and 'side-2'. This is because the two divs have some common and some different styles. A background image is set on side 1 and image information such as name, brief info, and social media links are added on side 2.

In the CSS part, we will first remove the project's default margins and padding. Then we will bring the boxes to the middle of the viewport using the CSS display flex property. Each single-box div is given a width and height of 300px. A perspective value of 1200 is then given to it. CSS perspective allows us to simulate a 3d experience on a 2d web page. In the end, we basically achieved the 3d animation or cube box animation on hover using the CSS transform property. We also made it looks responsive using CSS media queries. Follow the video above for more details and to see how the rest of the elements are styled. 

You May Also Like:


CSS profile card 3D hover Animation [ Source Code ]:


First Create HTML CSS files. Link the files properly when you create them. Put the code from the below code box into your project files.  You can save them and test them on your browser. If you find problems with the code you can always download it from the download button provided below.


ADD HTML:




ADD CSS:




We hope the code worked for you. If you enjoy our content, please share it with your friends. Please cooperate with us We can't proceed without your cooperation. We appreciate your interest and time on our site.

Post a Comment

Please Do not Enter any spam link in the comment box