{"id":58,"date":"2012-12-14T09:26:00","date_gmt":"2012-12-14T09:26:00","guid":{"rendered":"http:\/\/www.demo.acmethemes.com\/supermag\/?p=58"},"modified":"2024-10-02T09:21:45","modified_gmt":"2024-10-02T08:21:45","slug":"card-flip","status":"publish","type":"post","link":"https:\/\/codehang.com\/index.php\/2012\/12\/14\/card-flip\/","title":{"rendered":"Card flip with CSS3 &#8211; simple and easy"},"content":{"rendered":"<p>Today I am going to share a Card flip effect in which I have used some CSS3 properties i.e. transform, transform-style and transition.<\/p>\n<p>Initially, I wanted to make this Card flip effect in pure CSS, but I had to use JavaScript&#8217;s onclick event to keep this code snippet simple. However, if you really want to achieve this Card flip effect without the JavaScript then there are some techniques to avoid JavaScript&#8217;s onclick event, for instance you can use a hidden radio button to accomplish the Card flip effect.\u00a0<\/p>\n<p>For the sake of this tutorial, I would like to make it simple, so I am not going into the detail to achieve this effect without JavaScript. However, I will try to make a separate tutorial on Card Flip with pure CSS.<\/p>\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"BqMLbJ\" data-pen-title=\"Pure CSS Card flip - simple and easy\" data-user=\"TayabRaza\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/TayabRaza\/pen\/BqMLbJ\">\n  Pure CSS Card flip &#8211; simple and easy<\/a> by Tayab Raza (<a href=\"https:\/\/codepen.io\/TayabRaza\">@TayabRaza<\/a>)\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Today I am going to share a Card flip effect in which I have used some CSS3 properties i.e. transform, transform-style and transition. Initially, I wanted to make this Card flip effect in pure CSS, but I had to use JavaScript&#8217;s onclick event to keep this code snippet simple. However, if you really want to achieve this Card flip effect without the JavaScript then there are some techniques to avoid JavaScript&#8217;s onclick event, for instance you can use a hidden radio button to accomplish the Card flip effect.\u00a0 For the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,6],"tags":[10,11,16,17],"class_list":["post-58","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-featured-blogs","category-html","tag-css","tag-css3","tag-html","tag-html5"],"_links":{"self":[{"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":4,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions\/267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/media\/234"}],"wp:attachment":[{"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehang.com\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}