{"id":6157,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6157"},"modified":"2024-01-22T14:43:12","modified_gmt":"2024-01-22T09:43:12","slug":"card-flip-animation-using-javascript-code","status":"publish","type":"post","link":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/","title":{"rendered":"Card Flip Animation using JavaScript Code"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create card flip animation. It uses the JavaScript intervals function to flip cards at certain time intervals. The cards have been designed with background images using CSS that can be used for featured content on a webpage.<\/p>\n<p>Basically, the cards come with an automatically flipping animation but you can attach an event like a mouseover or click to flip the card on that event. Do you want to flip a card on click event? Well! here is a <a href=\"https:\/\/codehim.com\/html5-css3\/bootstrap-4-flip-card-on-click-with-jquery-justflipit\/\" target=\"_blank\" rel=\"noopener\">Bootstrap code snippet to flip the card on click<\/a>. Similarly, you can customize the size, background image, and flipping speed according to your needs.<\/p>\n<h2>How to Create Card Flip Animation using JavaScript<\/h2>\n<p>1. Create a div element with a class name &#8220;card&#8221; and place two divs elements for the front and back of the card. Place your content in both of these divs. Inside the card, you can create a div element with a class name &#8220;text-box&#8221;. In the text box, you can use the three classes to set text at the top, middle and lower of the card. The complete HTML structure for a card is as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"card\"&gt;\r\n  &lt;div class=\"card__side card__side--front\" id=\"front-1\"&gt;\r\n    &lt;div class=\"text-box\"&gt;\r\n      &lt;h3 class=\"text-box-top\"&gt;Flipping Cards&lt;\/h3&gt;\r\n      &lt;h1 class=\"text-box-middle\"&gt;Awesome!&lt;\/h1&gt;\r\n      &lt;h3 class=\"text-box-lower\"&gt;--- More Text ---&lt;\/h3&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"card__side card__side--back\" id=\"back-1\"&gt;\r\n    &lt;div class=\"text-box\"&gt;\r\n      &lt;h3 class=\"text-box-top\"&gt;Cards Flipped&lt;\/h3&gt;\r\n      &lt;h1 class=\"text-box-middle\"&gt;Great!&lt;\/h1&gt;\r\n      &lt;h3 class=\"text-box-lower\"&gt;--- More Text ---&lt;\/h3&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. Style the card using the following CSS styles. You can set the custom background images inside the &#8220;#front-1&#8221; and &#8220;#front-1&#8221; id selectors. Similarly, you can set the custom value for <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/transition-property\" target=\"_blank\" rel=\"noopener\">transition property<\/a> (to change flip speed) inside the &#8220;card&#8221; class selector.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.card {\r\n  perspective: 150rem;\r\n  -moz-perspective: 150rem;\r\n  position: relative;\r\n  height: 25rem;\r\n  width: 100%;\r\n  transition: all ease-in-out 5s;\r\n  cursor: pointer;\r\n}\r\n\r\n.card:hover {\r\n  transform: scale(1.05);\r\n}\r\n\r\n.card:active {\r\n  transform: translateY(-1px);\r\n}\r\n\r\n.card__side {\r\n  transition: all 0.8s ease;\r\n  color: white;\r\n  font-size: 2rem;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  height: 25rem;\r\n  width: 100%;\r\n  backface-visibility: hidden;\r\n  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.4);\r\n  border-radius: 8px;\r\n}\r\n\r\n.card__side--front {\r\n  background-color: #2196f3;\r\n  position: relative;\r\n  background-position: center;\r\n  background-repeat: no-repeat;\r\n  background-size: cover;\r\n}\r\n\r\n.card__side--back {\r\n  background-color: #303f9f;\r\n  transform: rotateY(180deg);\r\n  background-position: center;\r\n  background-repeat: no-repeat;\r\n  background-size: cover;\r\n}\r\n\r\n.showGreen {\r\n  transform: rotateY(-180deg);\r\n}\r\n\r\n.showRed {\r\n  transform: rotateY(0);\r\n}\r\n\r\n.text-box {\r\n  position: absolute;\r\n  top: 50%;\r\n  left: 50%;\r\n  transform: translate(-50%, -50%);\r\n  text-align: center;\r\n  width: 100%;\r\n}\r\n\r\n.text-box-top {\r\n  font-size: 2.2rem;\r\n  text-shadow: 2px 2px 10px #0000006c;\r\n  font-weight: 400;\r\n}\r\n\r\n.text-box-middle {\r\n  font-size: 5.5rem;\r\n  font-weight: 700;\r\n  text-shadow: 2px 2px 10px #0000006c;\r\n}\r\n\r\n.text-box-lower {\r\n  font-size: 2rem;\r\n  text-shadow: 2px 2px 10px #0000006c;\r\n  font-weight: 400;\r\n}\r\n\r\n.heading {\r\n  transition: all 0.6s linear;\r\n}\r\n\r\n.hide {\r\n  visibility: hidden;\r\n  opacity: 0;\r\n}\r\n\r\n.show {\r\n  visibility: visible;\r\n  opacity: 1;\r\n}\r\n\r\n#front-1 {\r\n  background-image: linear-gradient(\r\n      rgba(204, 30, 88, 0.6),\r\n      rgba(20, 20, 20, 0.6)\r\n    ),\r\n    url(\"https:\/\/images.unsplash.com\/photo-1527529482837-4698179dc6ce?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=crop&amp;w=600&amp;q=80\");\r\n}\r\n#front-2 {\r\n  background-image: linear-gradient(\r\n      rgba(31, 136, 168, 0.767),\r\n      rgba(14, 46, 65, 0.9)\r\n    ),\r\n    url(\"https:\/\/images.unsplash.com\/photo-1508599804355-8ce5238b44b1?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=crop&amp;w=600&amp;q=80\");\r\n}\r\n<\/pre>\n<p>3. Finally, add the following JavaScript function to initialize the card flip animation.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var flipCheck = 0;\r\n\r\nfunction rotateCards() {\r\n  if (flipCheck === 0) {\r\n    document.getElementById(\"front-2\").classList.add(\"showGreen\");\r\n    document.getElementById(\"back-2\").classList.add(\"showRed\");\r\n\r\n    document.getElementById(\"front-1\").classList.add(\"showGreen\");\r\n    document.getElementById(\"back-1\").classList.add(\"showRed\");\r\n\r\n    flipCheck = 1;\r\n\r\n  } else {\r\n    document.getElementById(\"front-2\").classList.remove(\"showGreen\");\r\n    document.getElementById(\"back-2\").classList.remove(\"showRed\");\r\n\r\n    document.getElementById(\"front-1\").classList.remove(\"showGreen\");\r\n    document.getElementById(\"back-1\").classList.remove(\"showRed\");\r\n\r\n    flipCheck = 0;\r\n  }\r\n}\r\n\r\nsetInterval(rotateCards, 3000); \/\/ Time in milliseconds\r\n<\/pre>\n<p>That&#8217;s all! Hopefully, you have successfully integrated this JavaScript code for card flip animation into your project. If you have any questions or facing any issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create card flip animation. It uses the JavaScript intervals function to flip cards&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6201,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[209,116],"tags":[],"class_list":["post-6157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-animation-effects","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Card Flip Animation using JavaScript Code &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Card Flip Animation using JavaScript Code &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:43:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Card Flip Animation using JavaScript Code\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\"},\"wordCount\":284,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png\",\"articleSection\":[\"Animation &amp; Effects\",\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\",\"url\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\",\"name\":\"Card Flip Animation using JavaScript Code &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:12+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png\",\"width\":1280,\"height\":960,\"caption\":\"Card Flip Animation using JavaScript Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Animation &amp; Effects\",\"item\":\"https:\/\/codehim.com\/category\/animation-effects\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Card Flip Animation using JavaScript Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Card Flip Animation using JavaScript Code &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/","og_locale":"en_US","og_type":"article","og_title":"Card Flip Animation using JavaScript Code &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.","og_url":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:43:12+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Card Flip Animation using JavaScript Code","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:12+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/"},"wordCount":284,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png","articleSection":["Animation &amp; Effects","Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/","url":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/","name":"Card Flip Animation using JavaScript Code &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:12+00:00","description":"Here is a lightweight JavaScript code snippet to create card flip animation. You can view demo and download code for card flip effect.","breadcrumb":{"@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/03\/card-flip-animation-using-javascript-code.png","width":1280,"height":960,"caption":"Card Flip Animation using JavaScript Code"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/animation-effects\/card-flip-animation-using-javascript-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Animation &amp; Effects","item":"https:\/\/codehim.com\/category\/animation-effects\/"},{"@type":"ListItem","position":3,"name":"Card Flip Animation using JavaScript Code"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":12313,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=6157"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6157\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6201"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}