{"id":9521,"date":"2024-01-09T18:03:00","date_gmt":"2024-01-09T18:03:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9521"},"modified":"2024-01-22T16:05:08","modified_gmt":"2024-01-22T11:05:08","slug":"flex-panels-image-gallery-using-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/","title":{"rendered":"Flex Panels Image Gallery Using JavaScript"},"content":{"rendered":"<p>This code creates a Flex Panels Image Gallery using JavaScript. It enables the user to click on panels, which then expand and reveal their content. The code uses JavaScript to toggle classes for opening and activating the panels when they are clicked. This interactive gallery is helpful for creating engaging and dynamic web page content.<\/p>\n<p>You can use this code to enhance your website by creating an<a href=\"https:\/\/codehim.com\/gallery\/responsive-lightbox-image-gallery-jquery\/\" target=\"_blank\" rel=\"noopener\"> interactive image gallery<\/a>.<\/p>\n<h2>How to Create Flex Panels Image Gallery Using JavaScript<\/h2>\n<p>1. First, create the necessary HTML structure for your Flex Panels Gallery. In the following code, a div with the id <code>\"parts\"<\/code> contains multiple div elements with the class &#8220;part.&#8221; Each &#8220;part&#8221; represents a panel in the gallery. Customize the content within each panel to your liking.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div id=\"parts\"&gt;\r\n        &lt;div class=\"part part1\"&gt;\r\n           &lt;p&gt;Hey&lt;\/p&gt;\r\n           &lt;p&gt;Let's&lt;\/p&gt;\r\n           &lt;p&gt;Have Fun&lt;\/p&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"part part2\"&gt;\r\n            &lt;p&gt;Relax,&lt;\/p&gt;\r\n            &lt;p&gt;Take&lt;\/p&gt;\r\n            &lt;p&gt;It Easy&lt;\/p&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"part part3\"&gt;\r\n            &lt;p&gt;Make&lt;\/p&gt;\r\n            &lt;p&gt;It&lt;\/p&gt;\r\n            &lt;p&gt;True&lt;\/p&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"part part4\"&gt;\r\n            &lt;p&gt;Give&lt;\/p&gt;\r\n            &lt;p&gt;All&lt;\/p&gt;\r\n            &lt;p&gt;The Best&lt;\/p&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"part part5\"&gt;\r\n            &lt;p&gt;Live&lt;\/p&gt;\r\n            &lt;p&gt;In&lt;\/p&gt;\r\n            &lt;p&gt;The Moment&lt;\/p&gt;\r\n        &lt;\/div&gt;\r\n   &lt;\/div&gt;<\/pre>\n<p>2\u06d4 Style your gallery with CSS. The following CSS code sets the background colors, fonts, and layout. You can modify these styles to match your website&#8217;s design. The essential CSS properties to note include <code>\"display: flex\"<\/code> for the container and transitions for smooth animations when panels open.<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n    box-sizing: border-box;\r\n    margin: 0;\r\n    padding: 0;\r\n}\r\n\r\n\r\nbody {\r\n    background-color:#1C0602;\r\n    font-family: 'Merienda One', cursive;\r\n    color: #FFEACE;\r\n    font-size: 20px;\r\n}\r\n#parts {\r\n   min-height: 100vh;\r\n   overflow: hidden;\r\n   display: flex; \/*flex container*\/\r\n}\r\n.part {\r\n    text-align: center;\r\n    flex: 1; \/*flex item, ka\u017cdy zajmuje tyle samo miejsca czyli 1*\/\r\n    display: flex; \/*flex container dla el. p*\/\r\n    justify-content: center;\r\n    flex-direction: column; \/*ustawia w kolumnach flex-items czyli tutaj p*\/\r\n    transition: \r\n        font-size .7s,\r\n        flex .7s;\r\n}\r\n.part.open {\r\n    font-size: 2em;\r\n    flex: 5; \/*kiedy panel jest otwarty zajmuje 5*wi\u0119cej miejsca ni\u017c panel zamkniety*\/\r\n}\r\n.part p {\r\n    width: 100%;\r\n    flex: 1 0 auto;\r\n    display: flex; \/*flex container dla p*\/\r\n    justify-content: center;\r\n    align-items: center;\r\n    transition: transform .5s;\r\n}\r\n.part p:nth-child(2) {\r\n    font-size: 2em;\r\n    text-transform: uppercase;\r\n}\r\n.part p:first-child {\r\n    transform: translateY(-100%); \/*znikaj\u0105 g\u00f3rne napisy*\/\r\n}\r\n.part.open-active p:first-child {\r\n    transform: translateY(0); \/*pojawiaj\u0105 si\u0119 g\u00f3rne napisy*\/\r\n}\r\n.part p:last-child {\r\n    transform: translateY(100%); \/*znikaj\u0105 dolne napisy*\/\r\n}\r\n.part.open-active p:last-child {\r\n    transform: translateY(0); \/*pojawiaj\u0105 si\u0119 dolne napisy*\/\r\n}\r\n.part1 {\r\n    background-color: #FF992C;\r\n}\r\n.part2 {\r\n    background-color: #F27823;\r\n}\r\n.part3 {\r\n    background-color: #F26320;\r\n}\r\n.part4 {\r\n    background-color: #BF3E18;\r\n}\r\n.part5 {\r\n    background-color: #8C1D0C;\r\n}\r\n\r\n@media screen and (max-width: 1000px) {\r\n    body {\r\n        font-size: 10px;\r\n    }\r\n    .part.open {\r\n        font-size: 1.8em;\r\n        flex: 3;\r\n    }\r\n    .part p:nth-child(2) {\r\n        font-size: 2em;\r\n    }\r\n}\r\n@media screen and (max-width: 530px) {\r\n    body {\r\n        font-size: 6px;\r\n    }\r\n}<\/pre>\n<p>3. The JavaScript code in the example makes the gallery interactive. It toggles classes to open and activate the panels. To add this functionality to your gallery, create a JavaScript file or include the code in a script tag within your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const parts = document.querySelectorAll('.part');\r\n\r\nfunction toggleOpen() {\r\n    this.classList.toggle('open');\r\n}\r\n\r\nfunction toggleActive(e) {\r\n    if(e.propertyName.includes('flex')) {\r\n        this.classList.toggle('open-active');\r\n    }\r\n}\r\nparts.forEach(part =&gt; part.addEventListener('click', toggleOpen));\r\nparts.forEach(part =&gt; part.addEventListener('transitionend', toggleActive));<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Flex Panels Image Gallery Using HTML, CSS, and JavaScript. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates a Flex Panels Image Gallery using JavaScript. It enables the user to click on panels, which then&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9537,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-9521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gallery"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Flex Panels Image Gallery Using JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.\" \/>\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\/gallery\/flex-panels-image-gallery-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flex Panels Image Gallery Using JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\" \/>\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-09T18:03:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:05:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Flex Panels Image Gallery Using JavaScript\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:05:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\"},\"wordCount\":247,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png\",\"articleSection\":[\"Gallery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\",\"url\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\",\"name\":\"Flex Panels Image Gallery Using JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:05:08+00:00\",\"description\":\"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Flex Panels Image Gallery Using JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gallery\",\"item\":\"https:\/\/codehim.com\/category\/gallery\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Flex Panels Image Gallery Using JavaScript\"}]},{\"@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":"Flex Panels Image Gallery Using JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.","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\/gallery\/flex-panels-image-gallery-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Flex Panels Image Gallery Using JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-09T18:03:00+00:00","article_modified_time":"2024-01-22T11:05:08+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Flex Panels Image Gallery Using JavaScript","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:05:08+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/"},"wordCount":247,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png","articleSection":["Gallery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/","url":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/","name":"Flex Panels Image Gallery Using JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:05:08+00:00","description":"Here is a free code snippet to create a Flex Panels Image Gallery Using JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Flex-Panels-Image-Gallery-Using-JavaScript.png","width":1280,"height":960,"caption":"Flex Panels Image Gallery Using JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/gallery\/flex-panels-image-gallery-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Gallery","item":"https:\/\/codehim.com\/category\/gallery\/"},{"@type":"ListItem","position":3,"name":"Flex Panels Image Gallery Using JavaScript"}]},{"@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":979,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9521","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=9521"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9537"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}