{"id":9225,"date":"2024-01-18T17:59:00","date_gmt":"2024-01-18T17:59:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9225"},"modified":"2024-01-22T16:01:09","modified_gmt":"2024-01-22T11:01:09","slug":"responsive-image-hotspots","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/","title":{"rendered":"Responsive Image Hotspots Code with Demo"},"content":{"rendered":"<p>This code facilitates the creation of responsive image hotspots on a webpage. It works by positioning and styling hotspots on an image to display additional information when clicked.<\/p>\n<p>The &#8220;hotspot&#8221; class is essential for this purpose, allowing users to interact with and reveal hidden content. It&#8217;s helpful for enhancing image-based content with interactive annotations.<\/p>\n<p>It&#8217;s ideal for <a href=\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-product-details-page\/\" target=\"_blank\" rel=\"noopener\">product pages<\/a> to highlight key features, educational websites for informative illustrations, and travel sites to showcase points of interest.<\/p>\n<h2>How to Create Responsive Image Hotspots<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/necolas.github.io\/normalize.css\/\" target=\"_blank\" rel=\"noopener\">Normalize CSS<\/a> and<a href=\"https:\/\/jquery.com\" target=\"_blank\" rel=\"noopener\"> jQuery<\/a> by adding the following CDN links 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\/normalize\/5.0.0\/normalize.min.css\"&gt;\r\n&lt;script src='https:\/\/code.jquery.com\/jquery-2.2.4.min.js'&gt;&lt;\/script&gt;<\/pre>\n<p>2. Inside the <code>&lt;body&gt;<\/code> of your HTML, create a container div where your image and hotspots will reside. Copy and paste this code for each hotspot, adjusting the positioning and content as needed.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class='container'&gt;\r\n  &lt;div class='hotspot open' style='top: 20%;left: 10%;'&gt;\r\n    &lt;div class='icon'&gt;+&lt;\/div&gt;\r\n    &lt;div class='content'&gt;\r\n      &lt;h4&gt;Lorem ipsum&lt;\/h4&gt;\r\n      &lt;p&gt;diam consetetur takimata velit magna magna&lt;\/p&gt;\r\n      &lt;a class='btn' href='\/'&gt;\r\n        Button\r\n      &lt;\/a&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class='hotspot' style='top: 5%; right: 10%;'&gt;\r\n    &lt;div class='icon'&gt;+&lt;\/div&gt;\r\n    &lt;div class='content'&gt;\r\n      &lt;h4&gt;Eros uns eos sind rebum&lt;\/h4&gt;\r\n      &lt;p&gt;Clita sanctus eirmod eros aliquip. Clita Lorem dolores diam&lt;\/p&gt;\r\n      &lt;a class='btn'&gt;\r\n        velit dolor\r\n      &lt;\/a&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class='hotspot' style='bottom: 20%;left: 60%;'&gt;\r\n    &lt;div class='icon'&gt;+&lt;\/div&gt;\r\n    &lt;div class='content'&gt;\r\n      &lt;h4&gt;Eros uns eos sind rebum&lt;\/h4&gt;\r\n      &lt;p&gt;Clita sanctus eirmod eros aliquip. Clita Lorem dolores diam&lt;\/p&gt;\r\n      &lt;a class='btn' href='\/'&gt;\r\n        Button\r\n      &lt;\/a&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class='hotspot' style='bottom: 10%;right: 10%;'&gt;\r\n    &lt;div class='icon'&gt;+&lt;\/div&gt;\r\n    &lt;div class='content'&gt;\r\n      &lt;h4&gt;Eros uns eos sind rebum&lt;\/h4&gt;\r\n      &lt;p&gt;Clita sanctus eirmod eros aliquip. Clita Lorem dolores diam&lt;\/p&gt;\r\n      &lt;a class='btn' href='\/'&gt;\r\n        Button\r\n      &lt;\/a&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>3. In your <code>styles.css<\/code> file, include the provided CSS code. This code defines the hotspot styles and positioning. Customize it to match your design and hotspot size.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.container {\r\n  position: relative;\r\n  z-index: 99;\r\n  display: block;\r\n  padding-bottom: 56.25%;\r\n  background-image: url(\"https:\/\/unsplash.it\/1600\/900\/?image=999\") !important;\r\n  background-repeat: no-repeat;\r\n  background-size: cover;\r\n}\r\n\r\n.hotspot {\r\n  position: absolute;\r\n  display: block;\r\n  width: 30px;\r\n  height: 30px;\r\n  overflow: hidden;\r\n  border-radius: 50% 50%;\r\n  background-color: #994e77;\r\n  color: white;\r\n  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\r\n  backface-visibilty: hidden;\r\n  transition: all 0.3s ease 0.1, border-radius 0.1s ease 0.2;\r\n}\r\n.hotspot.open {\r\n  border-radius: 0 0;\r\n  width: 300px;\r\n  height: 250px;\r\n  max-height: 300px;\r\n  transition: all 0.3s ease, border-radius 0.1s ease;\r\n}\r\n.hotspot.open .icon {\r\n  transform: rotate(45deg);\r\n}\r\n.hotspot.open .content {\r\n  opacity: 1;\r\n  transition: opacity 0.2s ease 0.2s;\r\n}\r\n.hotspot .icon {\r\n  position: absolute;\r\n  display: block;\r\n  width: 30px;\r\n  height: 30px;\r\n  overflow: hidden;\r\n  font-size: 20px;\r\n  line-height: 30px;\r\n  text-align: center;\r\n  cursor: pointer;\r\n  transition: all 0.3s ease;\r\n}\r\n.hotspot .content {\r\n  position: absolute;\r\n  top: 30px;\r\n  left: 30px;\r\n  margin: 0;\r\n  overflow: auto;\r\n  height: 240px;\r\n  width: 240px;\r\n  opacity: 0;\r\n  transition: opacity 0.1s ease 0s;\r\n}\r\n.hotspot .content h4 {\r\n  margin: 0 0 10px 0;\r\n}\r\n.hotspot .content p {\r\n  margin: 0 0 30px 0;\r\n}\r\n.hotspot .content .btn {\r\n  padding: 10px 20px;\r\n  line-height: 20px;\r\n  background-color: white;\r\n  color: black;\r\n  text-decoration: none;\r\n  box-shadow: 0px 0px 5px #422133;\r\n}\r\n.hotspot.left-top .icon {\r\n  top: 0;\r\n  left: 0;\r\n}\r\n.hotspot.right-top .icon {\r\n  left: auto;\r\n  top: 0;\r\n  right: 0;\r\n}\r\n.hotspot.left-bottom .icon {\r\n  left: 0;\r\n  bottom: 0;\r\n}\r\n.hotspot.right-bottom .icon {\r\n  bottom: 0;\r\n  right: 0;\r\n}<\/pre>\n<p>4. Finally, include the following JavaScript code to your project. It enables the opening and closing of hotspots on click and positions them correctly on the image.<\/p>\n<pre class=\"prettyprint linenums lang-js\">$('.hotspot .icon').click(function() {\r\n  var $parent = $(this).parent();\r\n  $parent.toggleClass('open');\r\n  $('.hotspot.open').not($parent).removeClass('open');\r\n\r\n});\r\n\r\n$('.hotspot').each(function(e, i) {\r\n  var $this = $(this);\r\n  var css = detectPosition($this, e);\r\n  $(this).addClass(css.css).attr('style', css.styles)\r\n});\r\n\r\nfunction detectPosition($elem, ind) {\r\n  var container = $('.container'),\r\n    height = container.innerHeight(),\r\n    width = container.innerWidth(),\r\n    p = $elem.position(),\r\n    x = p.left,\r\n    y = p.top,\r\n    w = $elem.width(),\r\n    h = $elem.height(),\r\n\r\n    cssClass = [],\r\n    style = '';\r\n\r\n  if (x &gt;= width \/ 2) { \/\/ Right half\r\n    cssClass.push('right');\r\n    style += 'right:' + ((width - x - w) \/ width * 100) + '%;left: auto;';\r\n\r\n  } else { \/\/ Left half\r\n    cssClass.push('left');\r\n    style += 'left:' + (x \/ width * 100) + '%;right: auto;';\r\n\r\n  }\r\n\r\n  if (y &gt;= height \/ 2) { \/\/ Lower half\r\n    cssClass.push('bottom');\r\n    style += 'bottom:' + ((height - y - h) \/ height * 100) + '%;top: auto;';\r\n\r\n  } else { \/\/ Upper half\r\n    cssClass.push('top');\r\n    style += 'top:' + (y \/ height * 100) + '%;bottom: auto;';\r\n  }\r\n\r\n  return {\r\n    css: cssClass.join('-'),\r\n    styles: style\r\n  };\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created Responsive Image Hotspots on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code facilitates the creation of responsive image hotspots on a webpage. It works by positioning and styling hotspots on&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9230,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-9225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Responsive Image Hotspots Code with Demo &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. 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\/html5-css3\/responsive-image-hotspots\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Responsive Image Hotspots Code with Demo &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\" \/>\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-18T17:59:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:01:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.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\/html5-css3\/responsive-image-hotspots\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Responsive Image Hotspots Code with Demo\",\"datePublished\":\"2024-01-18T17:59:00+00:00\",\"dateModified\":\"2024-01-22T11:01:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\"},\"wordCount\":221,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png\",\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\",\"name\":\"Responsive Image Hotspots Code with Demo &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png\",\"datePublished\":\"2024-01-18T17:59:00+00:00\",\"dateModified\":\"2024-01-22T11:01:09+00:00\",\"description\":\"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png\",\"width\":1280,\"height\":960,\"caption\":\"Responsive Image Hotspots Code with Demo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#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\":\"Responsive Image Hotspots Code with Demo\"}]},{\"@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":"Responsive Image Hotspots Code with Demo &#8212; CodeHim","description":"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. 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\/html5-css3\/responsive-image-hotspots\/","og_locale":"en_US","og_type":"article","og_title":"Responsive Image Hotspots Code with Demo &#8212; CodeHim","og_description":"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-18T17:59:00+00:00","article_modified_time":"2024-01-22T11:01:09+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.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\/html5-css3\/responsive-image-hotspots\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Responsive Image Hotspots Code with Demo","datePublished":"2024-01-18T17:59:00+00:00","dateModified":"2024-01-22T11:01:09+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/"},"wordCount":221,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png","articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/","url":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/","name":"Responsive Image Hotspots Code with Demo &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png","datePublished":"2024-01-18T17:59:00+00:00","dateModified":"2024-01-22T11:01:09+00:00","description":"Here is a free code snippet to create a Responsive Image Hotspots Code with Demo. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Responsive-Image-Hotspots-Code-with-Demo.png","width":1280,"height":960,"caption":"Responsive Image Hotspots Code with Demo"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/responsive-image-hotspots\/#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":"Responsive Image Hotspots Code with Demo"}]},{"@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":2629,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9225","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=9225"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9225\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9230"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}