{"id":5654,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=5654"},"modified":"2024-01-22T14:45:23","modified_gmt":"2024-01-22T09:45:23","slug":"html-css-image-comparison-slider","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/","title":{"rendered":"HTML CSS Image Comparison Slider"},"content":{"rendered":"<p>This lightweight (1 line JS) HTML CSS code snippet helps you to create an image comparison slider. It&#8217;s entirely built with HTML CSS and a little inline JavaScript function that dynamically updates slider values.<\/p>\n<p>This comparison image slider uses CSS variables and <a href=\"https:\/\/www.w3schools.com\/cssref\/css3_pr_clip-path.asp\" target=\"_blank\" rel=\"noopener\">clip-path property<\/a> to compare two images. Likewise, it uses an <a href=\"https:\/\/codehim.com\/text-input\/html-range-slider-with-2-handles-javascript\/\" target=\"_blank\" rel=\"noopener\">HTML5 range slider<\/a> to get the values for the clip-path. The design and layout of the slider can be easily customized by setting the custom values in CSS variables.<\/p>\n<h2>How to Create Image Comparison Slider in HTML CSS<\/h2>\n<p>1. First of all, create the HTML div element with a class name &#8220;c-compare&#8221; and place your two images inside it with class names &#8220;c-compare__left&#8221; and &#8220;c-compare__right&#8221;.<\/p>\n<p>Similarly, create HTML input element with type &#8220;range&#8221; and\u00a0 define its class name &#8220;c-compare__range&#8221;. Inside the range input, define a JS function on the input event. The following is the complete HTML structure for the image comparison slider:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"c-compare\" style=\"--value:50%;\"&gt;\r\n  &lt;img class=\"c-compare__left\" src=\"img\/color.jpg\" alt=\"Color\" \/&gt;\r\n  &lt;img class=\"c-compare__right\" src=\"img\/bw.jpg\" alt=\"B\/W\" \/&gt;\r\n  &lt;input type=\"range\" class=\"c-rng c-compare__range\" min=\"0\" max=\"100\" value=\"50\" oninput=\"this.parentNode.style.setProperty('--value', `${this.value}%`)\" \/&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. After that, style the image comparison slider using the following CSS. If you want to customize the slider&#8217;s thumb width, background, or hover color, you can update variable values in the &#8220;.c-compare&#8221; class.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.c-compare {\r\n  --h: 9;\r\n  --m: 1rem 0;\r\n  --w: 16;\r\n  --thumb-bgc: red;\r\n  --thumb-bgc-focus: hsla(0, 70%, 70%, 0.7);\r\n  --thumb-w: 1rem;\r\n\r\n  margin: var(--m);\r\n  position: relative;\r\n}\r\n.c-compare::after {\r\n  content: \"\";\r\n  display: block;\r\n  padding-bottom: calc((var(--h) \/ var(--w)) * 100%);\r\n}\r\n.c-compare__left,\r\n.c-compare__right {\r\n  height: 100%;\r\n  object-fit: cover;\r\n  position: absolute;\r\n  width: 100%;\r\n}\r\n.c-compare__left {\r\n  clip-path: polygon(0% 0%, var(--value) 0%, var(--value) 100%, 0% 100%);\r\n}\r\n.c-compare__right {\r\n  clip-path: polygon(100% 0%, var(--value) 0%, var(--value) 100%, 100% 100%);\r\n}\r\n.c-compare__range {\r\n  background-color: transparent;\r\n  box-sizing: border-box;\r\n  font-family: inherit;\r\n  height: 100%;\r\n  margin: 0;\r\n  outline: none;\r\n  position: absolute;\r\n  top: 0;\r\n  width: 100%;\r\n}\r\n.c-compare__range::-moz-range-thumb {\r\n  background-color: var(--thumb-bgc);\r\n  cursor: ew-resize;\r\n  height: 100%;  \r\n  width: var(--thumb-w);\r\n}\r\n.c-compare__range::-webkit-slider-thumb {\r\n  background-color: var(--thumb-bgc);\r\n  cursor: ew-resize;\r\n  height: 100%;  \r\n  width: var(--thumb-w);\r\n}\r\n.c-compare__range:focus::-webkit-slider-thumb {\r\n  background-color: var(--thumb-bgc-focus);\r\n  box-shadow: 0 0 0 3px var(--thumb-bgc);\r\n}\r\n.c-compare__range:focus::-moz-range-thumb {\r\n  background-color: var(--thumb-bgc-focus);\r\n  box-shadow: 0 0 0 3px var(--thumb-bgc);\r\n}\r\n.c-compare__range::-moz-range-track {\r\n  background: transparent;\r\n  background-size: 100%;\r\n  box-sizing: border-box;\r\n}\r\n.c-compare__range::-webkit-slider-runnable-track {\r\n  background: transparent;\r\n  background-size: 100%;\r\n  box-sizing: border-box;\r\n  height: 100%;\r\n}\r\n.c-compare__range,\r\n.c-compare__range::-webkit-slider-runnable-track,\r\n.c-compare__range::-webkit-slider-thumb {\r\n  -webkit-appearance: none;\r\n  appearance: none;\r\n}\r\n<\/pre>\n<p>That&#8217;s all! hopefully, this code snippet for the &#8220;comparison image slider&#8221; is helpful for you. If you have a question or suggestion, let me know by comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lightweight (1 line JS) HTML CSS code snippet helps you to create an image comparison slider. It&#8217;s entirely built&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5657,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[79],"class_list":["post-5654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3","tag-slider"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML CSS Image Comparison Slider &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.\" \/>\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\/html5-css3\/html-css-image-comparison-slider\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML CSS Image Comparison Slider &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\" \/>\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:45:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.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\/html5-css3\/html-css-image-comparison-slider\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"HTML CSS Image Comparison Slider\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\"},\"wordCount\":225,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png\",\"keywords\":[\"Image Sliders\"],\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\",\"name\":\"HTML CSS Image Comparison Slider &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:23+00:00\",\"description\":\"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png\",\"width\":1280,\"height\":960,\"caption\":\"HTML CSS Image Comparison Slider\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 &amp; CSS3\",\"item\":\"https:\/\/codehim.com\/category\/html5-css3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML CSS Image Comparison Slider\"}]},{\"@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":"HTML CSS Image Comparison Slider &#8212; CodeHim","description":"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.","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\/html5-css3\/html-css-image-comparison-slider\/","og_locale":"en_US","og_type":"article","og_title":"HTML CSS Image Comparison Slider &#8212; CodeHim","og_description":"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.","og_url":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/","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:45:23+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.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\/html5-css3\/html-css-image-comparison-slider\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"HTML CSS Image Comparison Slider","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:23+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/"},"wordCount":225,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png","keywords":["Image Sliders"],"articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/","url":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/","name":"HTML CSS Image Comparison Slider &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:23+00:00","description":"Here is a HTML CSS code snippet to create image comparison slider. This CSS photo comparison slider uses only 1 line of JavaScript.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/html-css-image-comparison-slider.png","width":1280,"height":960,"caption":"HTML CSS Image Comparison Slider"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/html-css-image-comparison-slider\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"HTML5 &amp; CSS3","item":"https:\/\/codehim.com\/category\/html5-css3\/"},{"@type":"ListItem","position":3,"name":"HTML CSS Image Comparison Slider"}]},{"@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":10935,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5654","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=5654"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5654\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/5657"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=5654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=5654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=5654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}