{"id":5927,"date":"2024-04-14T12:47:26","date_gmt":"2024-04-14T04:47:26","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5927"},"modified":"2024-04-14T12:47:26","modified_gmt":"2024-04-14T04:47:26","slug":"construct-flip-cards-using-transforms","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/construct-flip-cards-using-transforms\/","title":{"rendered":"Construct flip cards using transforms"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Throughout this tutorial, you will grasp the technique of crafting a basic card flip animation employing CSS 3D transformations \u2014 all without the necessity of manual coding. Card rotations serve as an effective means to introduce visual dynamism by unveiling supplementary information. For instance, implementing a card flip animation enables you to highlight more specifics about a merchandise you are marketing.\u00a0<\/p>\n<p><strong>During this tutorial<\/strong>:<\/p>\n<ol>\n<li>Establish a Segment and Division block to encompass your card picture components<\/li>\n<li>Fashion card front and back picture components<\/li>\n<li>Configure the offspring perspective on the ancestor element<\/li>\n<li>Specify transformation properties on the card picture components<\/li>\n<li>Animate the Card wrapper to pivot upon hover\u00a0<\/li>\n<\/ol>\n<h2>Erect a Segment and Division block to house your card picture components<br \/><\/h2>\n<p>To kick things off, append a <strong>Segment<\/strong> on your page:\u00a0<\/p>\n<ol>\n<li>Unveil the <strong>Insert elements <\/strong>pane located in the left toolbar<\/li>\n<li>Drag a <strong>Segment<\/strong> onto your page<\/li>\n<\/ol>\n<p>Position a <strong>Division block<\/strong> within the recently inserted Segment:<\/p>\n<ol>\n<li>Extract a <strong>Division block<\/strong> from the <strong>Insert elements<\/strong><strong>panel<\/strong> and embed it within the <strong>Segment <\/strong>previously established\u00a0<\/li>\n<li>Assign a class to the <strong>Division block<\/strong> (e.g., \u201cCard wrapper\u201d)\u00a0<\/li>\n<\/ol>\n<h2>Fabricate card front and back picture components<br \/><\/h2>\n<p>To insert and prepare your card picture components:\u00a0<\/p>\n<ol>\n<li>Drop 2 separate<strong> Picture components <\/strong>from the<strong> Insert elements<\/strong> pane and situate them within the Card wrapper <strong>Division block<\/strong> recently created\u00a0<\/li>\n<li>Select your initial picture and allot it a Class name of Card front. Redo this process for your subsequent picture, but designate it a Class name of Card back.\u00a0<\/li>\n<\/ol>\n<h3>To align images atop each other:\u00a0<br \/><\/h3>\n<p=select each picture and beneath <strong>Design<\/strong>, configure them to <strong>Display: Block<\/strong>. Ensure this adjustment is made for both pictures to have them overlapping.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b9499368b7496b60478ed4_5fa353181e135257563c6ea0_vmiziuxiwag3iyewvs8jngp0pigv3vnesyqqnjtb9nnrvflbumthuexfxyapj2od6oyqe9qghi3cff4mjpo9gheelutdeagexdgszit9uiiu8kczgtivocr1tugmfjvfbca89rru\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b9499368b7496b60478ed4_5fa353181e135257563c6ea0_vmiziuxiwag3iyewvs8jngp0pigv3vnesyqqnjtb9nnrvflbumthuexfxyapj2od6oyqe9qghi3cff4mjpo9gheelutdeagexdgszit9uiiu8kczgtivocr1tugmfjvfbca89rru\"><\/div>\n<\/figure>\n<p=Centralize the images within the Card wrapper <strong>Division block<\/strong>. Proceed to <strong>Spacing<\/strong> and arrange each image&#8217;s left and right margins to <strong>Auto<\/strong>. In case you desire a quicker method to center your images, click the <strong>Center element horizontally<\/strong> button for an automatic margin setup.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b9499368b7496b60478ed7_5fa3531740dfed6f790ffa9e_mrmpgbwcjhxnqp2aju_2sdwlt8fu1tpyvkll-9ean2tnpxjkr0mq6wmlebwqxvuai5lglhjxoovnmxxrhw-_e3rm8ocbac0kl4lvfmmtqjptlngrqflhe7pvqe6t8oaoae2hc00u\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b9499368b7496b60478ed7_5fa3531740dfed6f790ffa9e_mrmpgbwcjhxnqp2aju_2sdwlt8fu1tpyvkll-9ean2tnpxjkr0mq6wmlebwqxvuai5lglhjxoovnmxxrhw-_e3rm8ocbac0kl4lvfmmtqjptlngrqflhe7pvqe6t8oaoae2hc00u\"><\/div>\n<\/figure>\n<p=For the images to overlap mutually, a CSS style needs to be appended. Within the <strong>Design pane<\/strong> &gt;<strong> Position<\/strong>, modify each image to <strong>Absolute<\/strong> and designate the <strong>Upper<\/strong> position.\u00a0<\/p>\n<p>Having positioned your card images absolutely, both cards are piled. The Card back resides behind Card front.<\/p>\n<p=For access to the back card, let\u2019s obscure the front card:\u00a0\n<ol>\n<li>Click on the Card front image<\/li>\n<li>Navigate to <strong>Design<\/strong>\u00a0<\/li>\n<li>Temporarily alter the <strong>Display<\/strong> to <strong>None<\/strong><\/li>\n<\/ol>\n<h2>Establish the progeny perspective on the parent element<br \/><\/h2>\n<p=Recall the <strong>Segment<\/strong> previously included on your page? Since it functions as the parent component of the Card wrapper Div block, we must set the section\u2019s <strong>Offspring perspective<\/strong>. Enabling this perspective facilitates the display of our transformation in 3D.\u00a0<\/p>\n<ol>\n<li>Select the <strong>Segment<\/strong><\/li>\n<li>Access the <strong>Design pane<\/strong> &gt; <strong>Impacts<\/strong> &gt; <strong>2D &amp; 3D transformations<\/strong><\/li>\n<li>Engage the 3 disclosure dots to unveil <strong>Transformation<\/strong> configurations<\/li>\n<li>Beneath <strong>Offspring perspective<\/strong>, specify a <strong>Distance<\/strong> of 1234 pixels (you can always fine-tune this subsequently to match your desired 3D card flip appearance)\u00a0<\/li>\n<\/ol>\n<h2>Specify transformation attributes on the card image components<br \/><\/h2>\n<p=Now that your Segment has its offspring perspective configured and your back card is exposed, let\u2019s initialize the back card\u2019s transformation properties.\n<ol>\n<li>Within the <strong>Design pane<\/strong>, proceed to <strong>Impacts<\/strong> and append a <strong>2D &amp; 3D transformation <\/strong>via the supplement icon\u00a0<\/li>\n<li>Opt for<strong> Rotate<\/strong> and pivot the picture component by 180 degrees along the Y-axis\u00a0<\/li>\n<\/ol>\n<p=By rotating the back card, you observe the reflective display of its rear side. Essentially, this 180-degree transformation has reoriented the Card back to face the contrary direction, away from us. Consequently, the area of the card visible to us constitutes the card\u2019s Backface. Bear in mind, our aim with the card flip animation is to conceal each card\u2019s Backface.\u00a0\n<p=To conceal the Backface of the card:\u00a0<br \/>\n<ol>\n<li>Revisit <strong>Impacts<\/strong> &gt; <strong>2D &amp; 3D transformations<\/strong><\/li>\n<li>Click the 3 disclosure dots to exhibit <strong>Transformation <\/strong>configurations\u00a0<\/li>\n<li>Designate <strong>Backface<\/strong> as <strong>Hidden<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b9499368b7496b60478ee0_5fa3531733cc26930e577454_unvjfh0tc2_fr-mxgqc9fznwqe0qzsr1plfe7mp9bpvqlp9lcx-e_0rg85nwn4dyawxkkpygtmcvz9jo5exb8qnkethxosjuuimykcyl39o_sy33stxaiabhcr_aouzgqeyewn_f\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b9499368b7496b60478ee0_5fa3531733cc26930e577454_unvjfh0tc2_fr-mxgqc9fznwqe0qzsr1plfe7mp9bpvqlp9lcx-e_0rg85nwn4dyawxkkpygtmcvz9jo5exb8qnkethxosjuuimykcyl39o_sy33stxaiabhcr_aouzgqeyewn_f\"><\/div>\n<\/figure>\n<p=Next, re-apply visibility to the Card front picture component.\u00a0\n<ol>\n<li>Select the Card front picture component<\/li>\n<li>Adjust the <strong>Display<\/strong> to<strong> Block<\/strong>\u00a0<\/li>\n<\/ol>\n<p=Additionally, mask the Card front\u2019s Backface similar to the Card back.\n<ol>\n<li>Single out the Card front component.<\/li>\n<li>Head to <strong>Impacts <\/strong>&gt;<strong> 2D &amp; 3D transformations<\/strong>\u00a0<\/li>\n<li>Click the 3 disclosure dots to unlock <strong>Transformation <\/strong>settings\u00a0<\/li>\n<li>Determine <strong>Backface<\/strong> as <strong>Hidden<\/strong><\/li>\n<\/ol>\n<h2>Animate the card wrapper to pivot upon hover<br \/><\/h2>\n<p=It\u2019s about time to incorporate the animation for flipping the card and unveiling the Card back upon hover.\u00a0\n<p=Select the Card wrapper Div block. This enables the flipping animation to influence the entire Card wrapper Div block as well as both of our child card components.\u00a0<br \/>\n<ol>\n<li>Access the<strong> Selector<\/strong> field for the Card wrapper <strong>Division block<\/strong>\u00a0<\/li>\n<li>Opt for the <strong>Hover effect<\/strong> from the <strong>Selections<\/strong> drop-down list<\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b9499368b7496b60478eda_5fa35317baa095abece97044_ux3rlkib4kh_ing-zmig0fcn8uwphpncn_rjfj6au0amw63eomm0oobrequcby-mndxygv15tlfh3-rwxeu4llutmfkwpdysl-sg5hnlnvpo6tuw1xedo-q67wpkcueatrencyxs.jpeg\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b9499368b7496b60478eda_5fa35317baa095abece97044_ux3rlkib4kh_ing-zmig0fcn8uwphpncn_rjfj6au0amw63eomm0oobrequcby-mndxygv15tlfh3-rwxeu4llutmfkwpdysl-sg5hnlnvpo6tuw1xedo-q67wpkcueatrencyxs\"><\/div>\n<\/figure>\n<ol>\n<li>Activate the <strong>Hover effect<\/strong> and navigate to <strong>Modifications <\/strong>&gt;<strong> 2D &amp; 3D transformations<\/strong>\u00a0<\/li>\n<li>Hit the + sign and opt for the <strong>Rotate<\/strong> choice\u00a0<\/li>\n<li>Adjust the Card wrapper to rotate 180 degrees on the Y-axis<\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b9499368b7496b60478edd_5fa3531819b964b80c89341b_kdtlitm9vjry3i434o4nakn4mphtpmdlzj6pemc41lqqdumv8kwvvr-wcbg3h8xgrztqdcgnagymnz3ahlanwtgk-m-fjgikwjveb3g6tjn8oqdmmzd51f1t8jucaj4wal5ez65c\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b9499368b7496b60478edd_5fa3531819b964b80c89341b_kdtlitm9vjry3i434o4nakn4mphtpmdlzj6pemc41lqqdumv8kwvvr-wcbg3h8xgrztqdcgnagymnz3ahlanwtgk-m-fjgikwjveb3g6tjn8oqdmmzd51f1t8jucaj4wal5ez65c\"><\/div>\n<\/figure>\n<p><\/p>\n<p>In order to witness the flip animation you have created, revert back to the initial state of the Card wrapper <strong>Division block<\/strong> by selecting the <strong>Mode<\/strong> as <strong>Inactive<\/strong>.\u00a0<\/p>\n<p>Finally, incorporate a transition to the Card wrapper Division block.\u00a0<\/p>\n<ol>\n<li>Access the <strong>Appearance panel<\/strong> &gt; <strong>Modifications<\/strong> &gt; <strong>Transitions<\/strong>\u00a0<\/li>\n<li>Append a new transition using the additional button\u00a0<\/li>\n<li>From the <strong>Variety<\/strong> drop-down list, opt for <strong>Modification<\/strong><\/li>\n<li>Include a duration of 1000 milliseconds\u00a0<\/li>\n<\/ol>\n<p>It&#8217;s time to rejoice \u2014 you have completed the task! Click on the preview button in the Designer to examine your card flip in motion. Hover over the card and exit to witness the card flip transition in action! Exhilarating!\u00a0\u00a0<\/p>\n<h5>Associated resources<\/h5>\n<ul>\n<li>\u200dRead more about 2D and 3D Transformations<\/li>\n<li>Discover more about 3D Perspective<\/li>\n<\/ul>\n<p>\u200d<\/p>\n","protected":false},"excerpt":{"rendered":"Create a simple card flip animation on-hover with CSS 3D transforms.","protected":false},"author":2,"featured_media":5928,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-5927","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=5927"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5927\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5928"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}