{"id":9484,"date":"2024-01-09T18:03:00","date_gmt":"2024-01-09T18:03:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9484"},"modified":"2024-01-22T16:04:58","modified_gmt":"2024-01-22T11:04:58","slug":"javascript-canvas-countdown-timer","status":"publish","type":"post","link":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/","title":{"rendered":"JavaScript Canvas Countdown Timer"},"content":{"rendered":"<p>The JavaScript code snippet helps you to create a Canvas based Countdown Timer on a webpage. It uses an <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/canvas\" target=\"_blank\" rel=\"noopener\">HTML canvas element<\/a> to create a visual representation of the remaining days, hours, minutes, and seconds until a specified date. This timer is helpful for tracking time intervals or creating a sense of urgency on your website.<\/p>\n<p>You can use this code on your website to add a stylish countdown timer. It&#8217;s beneficial for creating a sense of urgency, such as for limited-time promotions or event countdowns.<\/p>\n<h2>How to Create a Javascript Canvas Countdown Timer<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/meyerweb.com\/eric\/tools\/css\/reset\/\" target=\"_blank\" rel=\"noopener\">Reset CSS<\/a> by adding the following CDN link into the head tag of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/meyer-reset\/2.0\/reset.min.css\"&gt;\r\n<\/pre>\n<p>2. Create the HTML structure for your countdown timer. You can place it anywhere on your webpage. The code provides four canvas elements for days, hours, minutes, and seconds.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"item-time\"&gt;\r\n  &lt;div class=\"card\"&gt;\r\n    &lt;div class=\"word\"&gt;DAYS&lt;\/div&gt;\r\n    &lt;canvas class=\"days\" width=\"50\" height=\"50\"&gt;&lt;\/canvas&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"card\"&gt;\r\n    &lt;div class=\"word\"&gt;HOUR&lt;\/div&gt;\r\n    &lt;canvas class=\"hours\" width=\"50\" height=\"50\"&gt;&lt;\/canvas&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"card\"&gt;\r\n    &lt;div class=\"word\"&gt;MIN&lt;\/div&gt;\r\n    &lt;canvas class=\"minutes\" width=\"50\" height=\"50\"&gt;&lt;\/canvas&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"card\"&gt;\r\n    &lt;div class=\"word\"&gt;SEC&lt;\/div&gt;\r\n    &lt;canvas class=\"seconds\" width=\"50\" height=\"50\"&gt;&lt;\/canvas&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>3. Add styles to your countdown timer using CSS. Customize the appearance to match your website&#8217;s design. The following CSS code helps you get started with a dark-themed countdown timer.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body{\r\n font-family: \"Helvetica Neue\", \"Helvetica\", Helvetica, Arial, sans-serif;\r\n  background: #141414;\r\n  display: flex;\r\n  justify-content: center;\r\n}\r\n.item-time {\r\n  display: grid;\r\n  margin-top: 2rem;\r\n  grid-template-columns: repeat(4, 1fr);\r\n  column-gap: .5rem;\r\n}\r\n.word {\r\n  text-align: center;\r\n  font-size: 0.8rem;\r\n  text-shadow: 0 1px 2px #000;\r\n  color: #c1c1c1;\r\n}\r\n.card {\r\n  background: #333;\r\n  color: #ccc;\r\n  padding: 0.5rem;\r\n  border-radius: 0.4rem;\r\n  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);\r\n}<\/pre>\n<p>4. Finally, add the following JavaScript code to your project. It divides this time into days, hours, minutes, and seconds, and updates the canvas elements accordingly.<\/p>\n<pre class=\"prettyprint linenums lang-js\">class Countdown {\r\n\r\n    \/**\r\n     * @param {Date} dateTo\r\n     *\/\r\n    constructor(itemSelector, dateTo) {\r\n        this.itemSelector = itemSelector;\r\n        let $ = el =&gt; document.querySelector(el);\r\n        this.dateSelectors = {\r\n            d: $('.days').getContext('2d'),\r\n            h: $('.hours').getContext('2d'),\r\n            m: $('.minutes').getContext('2d'),\r\n            s: $('.seconds').getContext('2d')\r\n        };\r\n        this.dateTo = dateTo;\r\n        requestAnimationFrame(() =&gt; this.set());\r\n    }\r\n\r\n    \/**\r\n     * Main function\r\n     *\/\r\n    set() {\r\n\r\n        let today = new Date();\r\n\r\n        for (let selector in this.dateSelectors) {\r\n            let s = this.dateSelectors[selector];\r\n            this.clear(s);\r\n            this.setTime(s, this.dateDiff(selector, today, this.dateTo));\r\n        }\r\n        requestAnimationFrame(() =&gt; this.set());\r\n    }\r\n\r\n    \/**\r\n     * Clear canvas\r\n     * @param {canvas} ctx \r\n     *\/\r\n    clear(ctx) { ctx.clearRect(0, 0, 60, 60); }\r\n\r\n    setTime(ctx, until) {\r\n        ctx.font = 'bold 2rem sans-serif';\r\n        ctx.shadowColor = \"#000\";\r\n        ctx.shadowOffsetX = 0;\r\n        ctx.shadowOffsetY = 1;\r\n        ctx.shadowBlur = 2;\r\n        ctx.fillStyle = \"#ccc\";\r\n        ctx.textAlign = \"center\";\r\n        ctx.fillText(until, 25, 40);\r\n    }\r\n\r\n    \/**\r\n     * \r\n     * @param {String} datepart  enum {'m',  'd', 'h', 's'}\r\n     * @param {Date} fromdate \r\n     * @param {Date} todate \r\n     *\/\r\n    dateDiff(datepart, fromdate, todate) {\r\n        datepart = datepart.toLowerCase();\r\n        let diff = todate - fromdate;\r\n        let divideBy = {\r\n            d: 86400000,\r\n            h: 3600000,\r\n            m: 60000,\r\n            s: 1000,\r\n            ms: 1\r\n        };\r\n\r\n        let modulo = {\r\n            d: 1,\r\n            h: divideBy['d'],\r\n            m: divideBy['h'],\r\n            s: divideBy['m'],\r\n            ms: divideBy['s']\r\n        }\r\n\r\n        return Math.floor(diff % modulo[datepart] \/ divideBy[datepart]);\r\n    }\r\n\r\n}\r\n\r\n\/\/set tomorrow date\r\nnew Countdown('.item-time', new Date(new Date().getTime() + 24 * 60 * 60 * 1000));<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created the JavaScript Canvas Countdown Timer on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The JavaScript code snippet helps you to create a Canvas based Countdown Timer on a webpage. It uses an HTML&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9493,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[58],"tags":[115,94],"class_list":["post-9484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-date-time","tag-countdown-timer","tag-html5-canvas"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Canvas Countdown Timer &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. 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\/date-time\/javascript-canvas-countdown-timer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Canvas Countdown Timer &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\" \/>\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:04:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Canvas Countdown Timer\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:04:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\"},\"wordCount\":231,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png\",\"keywords\":[\"Countdown Timer\",\"HTML5 Canvas\"],\"articleSection\":[\"Date &amp; Time\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\",\"url\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\",\"name\":\"JavaScript Canvas Countdown Timer &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:04:58+00:00\",\"description\":\"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Canvas Countdown Timer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Date &amp; Time\",\"item\":\"https:\/\/codehim.com\/category\/date-time\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Canvas Countdown Timer\"}]},{\"@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":"JavaScript Canvas Countdown Timer &#8212; CodeHim","description":"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. 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\/date-time\/javascript-canvas-countdown-timer\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Canvas Countdown Timer &#8212; CodeHim","og_description":"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/","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:04:58+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Canvas Countdown Timer","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:04:58+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/"},"wordCount":231,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png","keywords":["Countdown Timer","HTML5 Canvas"],"articleSection":["Date &amp; Time"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/","url":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/","name":"JavaScript Canvas Countdown Timer &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:04:58+00:00","description":"Here is a free code snippet to create a JavaScript Canvas Countdown Timer. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Canvas-Countdown-Timer.png","width":1280,"height":960,"caption":"JavaScript Canvas Countdown Timer"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/date-time\/javascript-canvas-countdown-timer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Date &amp; Time","item":"https:\/\/codehim.com\/category\/date-time\/"},{"@type":"ListItem","position":3,"name":"JavaScript Canvas Countdown Timer"}]},{"@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":2551,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9484","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=9484"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9493"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}