{"id":7301,"date":"2024-01-11T17:48:00","date_gmt":"2024-01-11T17:48:00","guid":{"rendered":"https:\/\/codehim.com\/?p=7301"},"modified":"2024-01-22T15:49:57","modified_gmt":"2024-01-22T10:49:57","slug":"javascript-particle-explosion-on-click","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/","title":{"rendered":"JavaScript Particle Explosion on Click"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create particle explosion &#x1f4a5; effect on click event. It dynamically appends particles with absolute position in a container where they are initialized.<\/p>\n<p>Generally, a particle is a div element that appended through <a href=\"https:\/\/www.w3schools.com\/jquery\/html_append.asp\" target=\"_blank\" rel=\"noopener\">jQuery append method<\/a> in a click handler function. This click event can be attached with any DOM&#8217;s element. The best part is that you&#8217;re not limited to show the particles effect on a canvas element only.<\/p>\n<p>Moreover, you can fully customize the particles using CSS and display them on any JavaScript events like click, mouseover, mousedown, touch, and scroll etc.<\/p>\n<h2>How to Create JavaScript Particle Explosion on Click<\/h2>\n<p>Basically, you can display the particles explosion effect anywhere on the webpage or attach it to a specific container.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"particle__container\"&gt;\r\n&lt;h2&gt;click anywhere on this container&lt;\/h2&gt;\r\n&lt;\/div&gt;\r\n\r\n<\/pre>\n<p>Style the particles using the following CSS. If you want to customize the particles, you can set the custom width, height and background color.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.particle__container{\r\n   background: #000 !important;\r\n   width: 100%;\r\n   min-height: 450px;\r\n   color: #fff;\r\n   text-align: center;\r\n   padding: 25px;\r\n}\r\n.explosion {\r\n  position: absolute;\r\n  width: 600px;\r\n  height: 600px;\r\n  pointer-events: none;\r\n}\r\n.explosion .particle {\r\n  position: absolute;\r\n  width: 10px;\r\n  height: 10px;\r\n  border-radius: 50%;\r\n  animation: pop 1s reverse forwards;\r\n}\r\n\r\n@keyframes pop {\r\n  from {\r\n    opacity: 0;\r\n  }\r\n  to {\r\n    top: 50%;\r\n    left: 50%;\r\n    opacity: 1;\r\n  }\r\n}\r\nhtml, body {\r\n  height: 100%;\r\n  background: #000;\r\n}\r\n\r\n<\/pre>\n<p>Load the jQuery by adding the following CDN link before closing the body tag.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;script src='https:\/\/code.jquery.com\/jquery-2.2.4.min.js'&gt;&lt;\/script&gt;<\/pre>\n<p>Finally, add the following JavaScript code just after the jQuery and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/\/ click event listener\r\n$('.particle__container').on('click', function(e) {\r\n  explode(e.pageX, e.pageY);\r\n})\r\n\r\n\/\/ explosion construction\r\nfunction explode(x, y) {\r\n  var particles = 15,\r\n    \/\/ explosion container and its reference to be able to delete it on animation end\r\n    explosion = $('&lt;div class=\"explosion\"&gt;&lt;\/div&gt;');\r\n\r\n  \/\/ put the explosion container into the body to be able to get it's size\r\n  $('body').append(explosion);\r\n\r\n  \/\/ position the container to be centered on click\r\n  explosion.css('left', x - explosion.width() \/ 2);\r\n  explosion.css('top', y - explosion.height() \/ 2);\r\n\r\n  for (var i = 0; i &lt; particles; i++) {\r\n    \/\/ positioning x,y of the particle on the circle (little randomized radius)\r\n    var x = (explosion.width() \/ 2) + rand(80, 150) * Math.cos(2 * Math.PI * i \/ rand(particles - 10, particles + 10)),\r\n      y = (explosion.height() \/ 2) + rand(80, 150) * Math.sin(2 * Math.PI * i \/ rand(particles - 10, particles + 10)),\r\n      color = rand(0, 255) + ', ' + rand(0, 255) + ', ' + rand(0, 255), \/\/ randomize the color rgb\r\n        \/\/ particle element creation (could be anything other than div)\r\n      elm = $('&lt;div class=\"particle\" style=\"' +\r\n        'background-color: rgb(' + color + ') ;' +\r\n        'top: ' + y + 'px; ' +\r\n        'left: ' + x + 'px\"&gt;&lt;\/div&gt;');\r\n\r\n    if (i == 0) { \/\/ no need to add the listener on all generated elements\r\n      \/\/ css3 animation end detection\r\n      elm.one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {\r\n        explosion.remove(); \/\/ remove this explosion container when animation ended\r\n      });\r\n    }\r\n    explosion.append(elm);\r\n  }\r\n}\r\n\r\n\/\/ get random number between min and max value\r\nfunction rand(min, max) {\r\n  return Math.floor(Math.random() * (max + 1)) + min;\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created particle explosion animation on click event. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create particle explosion &#x1f4a5; effect on click event. It dynamically appends particles with&#8230;<\/p>\n","protected":false},"author":1,"featured_media":7315,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-7301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","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>JavaScript Particle Explosion on Click &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo &amp; download 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\/vanilla-javascript\/javascript-particle-explosion-on-click\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Particle Explosion on Click &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo &amp; download code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\" \/>\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-11T17:48:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:49:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.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\/vanilla-javascript\/javascript-particle-explosion-on-click\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Particle Explosion on Click\",\"datePublished\":\"2024-01-11T17:48:00+00:00\",\"dateModified\":\"2024-01-22T10:49:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\"},\"wordCount\":211,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\",\"name\":\"JavaScript Particle Explosion on Click &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png\",\"datePublished\":\"2024-01-11T17:48:00+00:00\",\"dateModified\":\"2024-01-22T10:49:57+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo & download code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Particle Explosion on Click\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Particle Explosion on Click\"}]},{\"@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 Particle Explosion on Click &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo & download 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\/vanilla-javascript\/javascript-particle-explosion-on-click\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Particle Explosion on Click &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo & download code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T17:48:00+00:00","article_modified_time":"2024-01-22T10:49:57+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.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\/vanilla-javascript\/javascript-particle-explosion-on-click\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Particle Explosion on Click","datePublished":"2024-01-11T17:48:00+00:00","dateModified":"2024-01-22T10:49:57+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/"},"wordCount":211,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/","url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/","name":"JavaScript Particle Explosion on Click &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png","datePublished":"2024-01-11T17:48:00+00:00","dateModified":"2024-01-22T10:49:57+00:00","description":"Here is a lightweight JavaScript code snippet to create particle explosion effect on click. You can view demo & download code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/09\/javascript-particle-explosion-on-click.png","width":1280,"height":960,"caption":"JavaScript Particle Explosion on Click"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-particle-explosion-on-click\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Particle Explosion on Click"}]},{"@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":6037,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/7301","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=7301"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/7301\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/7315"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=7301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=7301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=7301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}