HTML Explanation
01
In the head section, the character encoding is defined as UTF-8, and viewport settings ensure the site scales properly on different devices.
02
The card structure consists of a main container with the class "card."
03
Inside, there is an image box that contains the image portraitdaniela.png.
04
Below the image, a details section includes a heading (<h2>Hello Nationalian.</h2>) and an empty div, presumably for social media icons.
CSS Explanation
01
The global styles begin with a universal selector that resets margins and padding for all elements while setting the box-sizing model to border-box, which enhances layout control.
02
In the body styles, a Flexbox layout is implemented to center content both vertically and horizontally within the viewport, complemented by a light pink background color.
03
The card styles specify fixed width and height dimensions for the card and enable 3D transformations to allow for depth effects.
04
The card features a white background and a subtle shadow for added depth, with smooth transition effects for hover interactions. Upon hovering, the card moves 50% to the right, creating a dynamic effect.
05
The details section is positioned absolutely on top of the card, using Flexbox to center its content.
06
It arranges child elements in a vertical layout, ensuring a clean and organized presentation.
07
In the image box styles, relative positioning is set to allow full dimensions of the image container, facilitating 3D transformations.
08
The image itself incorporates a flip effect, rotating along the Y-axis when the card is hovered over.
09
The image is sized to cover the entire area of the image box without distortion, and the backface-visibility property hides the back side during rotation, maintaining a clean and visually appealing look.
Javascript Explanation
01
The template does not have any javascript codes