{"id":6429,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6429"},"modified":"2024-01-22T14:43:56","modified_gmt":"2024-01-22T09:43:56","slug":"rotatable-circular-text-using-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/","title":{"rendered":"Rotatable Circular Text using JavaScript"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create rotatable circular text. Users can spin the circle with a mouse to navigate the circular text. You can use this code snippet to make rotatable menu navigation or spinable navigation.<\/p>\n<h2>How to Create Rotatable Circular Text using JavaScript<\/h2>\n<p>1. First of all, create the HTML structure as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"ring-wrapper\"&gt;\r\n  &lt;div id=\"layer-1\" class=\"ring layer-1\"&gt;\r\n    &lt;div class=\"ring-display\"&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;A&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;B&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;C&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;D&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;E&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;F&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;G&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;H&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;I&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;J&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;K&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;div class=\"label\"&gt;&lt;span&gt;L&lt;\/span&gt;&lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"interaction\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>2. After that, add the following CSS styles to your project:<\/p>\n<pre class=\"prettyprint linenums lang-css\">@import url(https:\/\/fonts.googleapis.com\/css?family=Lato:100,200,300,400,500,600);\r\nhtml {\r\n  width: 100%;\r\n}\r\n\r\nbody {\r\n  \r\n  padding: 50px;\r\n  font-family: \"Lato\";\r\n  font-weight: 300;\r\n}\r\n\r\n.ring-wrapper {\r\n  position: relative;\r\n  display: block;\r\n  width: 500px;\r\n  height: 500px;\r\n  margin: 0 auto;\r\n  overflow: hidden;\r\n}\r\n\r\n.ring {\r\n  display: block;\r\n  width: 100px;\r\n  height: 100px;\r\n  position: absolute;\r\n  top: 0;\r\n  transition: transform 0.25s, box-shadow 0.25s;\r\n  overflow: hidden;\r\n  border-radius: 100%;\r\n}\r\n\r\n.ring-display {\r\n  width: 100%;\r\n  height: 100%;\r\n  display: block;\r\n  border-radius: 100%;\r\n  overflow: hidden;\r\n  position: absolute;\r\n}\r\n\r\n.interaction {\r\n  width: 100%;\r\n  height: 100%;\r\n  display: block;\r\n  border-radius: 100%;\r\n  position: absolute;\r\n  cursor: pointer;\r\n}\r\n\r\n.ring:hover + .ring {\r\n  transition: box-shadow 0.25s;\r\n}\r\n\r\n.layer-1 {\r\n  width: 500px;\r\n  height: 500px;\r\n  border-radius: 100%;\r\n}\r\n\r\n.label {\r\n  top: 50%;\r\n  width: 100%;\r\n  height: 100%;\r\n  text-align: center;\r\n  transform-origin: 50% 0;\r\n  position: absolute;\r\n  \/\/transform:rotate(0deg) translate(0, -50%);\r\n  pointer-events: none;\r\n  color: #000;\r\n  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);\r\n  line-height: 100px;\r\n  font-size: 2em;\r\n  transition: color 1s;\r\n  -webkit-touch-callout: none;\r\n  -webkit-user-select: none;\r\n  -khtml-user-select: none;\r\n  -moz-user-select: none;\r\n  -ms-user-select: none;\r\n  user-select: none;\r\n}\r\n\r\n.label span {\r\n  display: inline-block;\r\n  margin: 0 auto;\r\n  width: 80px;\r\n  height: 80px;\r\n  line-height: 80px;\r\n  background: #fff;\r\n  border-radius: 50%;\r\n}\r\n\r\n.label:nth-child(1) {\r\n  transform: rotate(0deg) translate(0, -50%);\r\n  \/\/transform: rotate(360deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(2) {\r\n  transform: rotate(30deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(3) {\r\n  transform: rotate(60deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(4) {\r\n  transform: rotate(90deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(5) {\r\n  transform: rotate(120deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(6) {\r\n  transform: rotate(150deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(7) {\r\n  transform: rotate(180deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(8) {\r\n  transform: rotate(210deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(9) {\r\n  transform: rotate(240deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(10) {\r\n  transform: rotate(270deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(11) {\r\n  transform: rotate(300deg) translate(0, -50%);\r\n}\r\n\r\n.label:nth-child(12) {\r\n  transform: rotate(330deg) translate(0, -50%);\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">circle('layer-1');\r\n\r\n            function circle(id) {\r\n\r\n                var el = document.getElementById(id);\r\n\r\n                var elDisplay = el.children[0];\r\n                var elInteraction = el.children[1];\r\n\r\n                var offsetRad = null;\r\n                var targetRad = 0;\r\n                var previousRad;\r\n\r\n\r\n                try {\r\n                    elInteraction.addEventListener('mousedown', down);\r\n                }\r\n                catch (err) {\r\n                    console.log(\"Interaction not found\");\r\n                }\r\n\r\n                function down(event) {\r\n                    offsetRad = getRotation(event);\r\n                    previousRad = offsetRad;\r\n                    window.addEventListener('mousemove', move);\r\n                    window.addEventListener('mouseup', up);\r\n                }\r\n\r\n                function move(event) {\r\n\r\n                    var newRad = getRotation(event);\r\n                    targetRad += (newRad - previousRad);\r\n                    previousRad = newRad;\r\n                    elDisplay.style.transform = 'rotate(' + (targetRad \/ Math.PI * 180) + 'deg)';\r\n                }\r\n\r\n                function up() {\r\n                    window.removeEventListener('mousemove', move);\r\n                    window.removeEventListener('mouseup', up);\r\n                }\r\n\r\n                function getRotation(event) {\r\n                    var pos = mousePos(event, elInteraction);\r\n                    var x = pos.x - elInteraction.clientWidth * .5;\r\n                    var y = pos.y - elInteraction.clientHeight * .5;\r\n                    return Math.atan2(y, x);\r\n                }\r\n\r\n                function mousePos(event, currentElement) {\r\n                    var totalOffsetX = 0;\r\n                    var totalOffsetY = 0;\r\n                    var canvasX = 0;\r\n                    var canvasY = 0;\r\n\r\n                    do {\r\n                        totalOffsetX += currentElement.offsetLeft - currentElement.scrollLeft;\r\n                        totalOffsetY += currentElement.offsetTop - currentElement.scrollTop;\r\n                    }\r\n                    while (currentElement = currentElement.offsetParent)\r\n\r\n                    canvasX = event.pageX - totalOffsetX;\r\n                    canvasY = event.pageY - totalOffsetY;\r\n\r\n                    return {\r\n                        x: canvasX,\r\n                        y: canvasY\r\n                    };\r\n                }\r\n            }<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this rotatable circular text code snippet into your project. If you have any questions or facing any issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create rotatable circular text. Users can spin the circle with a mouse to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6433,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-6429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Rotatable Circular Text using JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download 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\/text-input\/rotatable-circular-text-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rotatable Circular Text using JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-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-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:43:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Rotatable Circular Text using JavaScript\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/\"},\"wordCount\":109,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png\",\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/\",\"url\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/\",\"name\":\"Rotatable Circular Text using JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:56+00:00\",\"description\":\"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png\",\"width\":1280,\"height\":960,\"caption\":\"Rotatable Circular Text using JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rotatable Circular Text 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":"Rotatable Circular Text using JavaScript &#8212; CodeHim","description":"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download 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\/text-input\/rotatable-circular-text-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Rotatable Circular Text using JavaScript &#8212; CodeHim","og_description":"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/","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:43:56+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Rotatable Circular Text using JavaScript","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:56+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/"},"wordCount":109,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png","articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/","url":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/","name":"Rotatable Circular Text using JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:56+00:00","description":"Here is a JavaScript code snippet to create rotatable circular text. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-18.png","width":1280,"height":960,"caption":"Rotatable Circular Text using JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/rotatable-circular-text-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"Rotatable Circular Text 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":2690,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6429","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=6429"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6429\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6433"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}