{"id":10335,"date":"2024-03-03T10:30:00","date_gmt":"2024-03-03T10:30:00","guid":{"rendered":"https:\/\/codehim.com\/?p=10335"},"modified":"2024-03-04T08:30:47","modified_gmt":"2024-03-04T03:30:47","slug":"arched-toggle-switch-using-html-css","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/","title":{"rendered":"Arched Toggle Switch Using HTML &#038; CSS"},"content":{"rendered":"<p>This code creates an arched toggle switch using HTML &amp; CSS. It generates a switch UI element. The switch allows toggling a feature on or off visually. The switch appearance changes when clicked. This code helps in creating customizable <a href=\"https:\/\/codehim.com\/bootstrap\/bootstrap-toggle-switch-with-text\/\" target=\"_blank\" rel=\"noopener\">toggle switches<\/a> for web interfaces.<\/p>\n<p>You can use this code in web development projects. It&#8217;s handy for creating user-friendly toggle switches. One benefit is enhancing user interaction on your website.<\/p>\n<h2>How to Create Arched Toggle Switch Using Html &amp; Css<\/h2>\n<p>1. First of all, create the HTML structure as follows. It sets up the basic structure for the toggle switch. The label contains an input element (checkbox), a background span, and a label span.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;label class=\"switch\"&gt;\r\n\t&lt;input class=\"switch__input\" type=\"checkbox\" role=\"switch\"&gt;\r\n\t&lt;span class=\"switch__bg\"&gt;&lt;\/span&gt;\r\n\t&lt;span class=\"switch__label\"&gt;Power&lt;\/span&gt;\r\n&lt;\/label&gt;<\/pre>\n<p>2. Now, let&#8217;s add the CSS styling to achieve the arched toggle switch effect. Copy and paste the following CSS code into your project. This CSS defines the appearance and behavior of the toggle switch. It styles the switch, input, background, and label, creating the arched effect and animation.<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n\tborder: 0;\r\n\tbox-sizing: border-box;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n}\r\n:root {\r\n\t--hue: 223;\r\n\t--bg: hsl(var(--hue),90%,60%);\r\n\t--fg: hsl(var(--hue),90%,10%);\r\n\t--primary: hsl(var(--hue),90%,50%);\r\n\t--trans-dur: 0.3s;\r\n\t--trans-timing: cubic-bezier(0.65,0,0.35,1);\r\n\tfont-size: calc(40px + (80 - 40) * (100vw - 320px) \/ (2560 - 320));\r\n}\r\nbody,\r\ninput {\r\n\tfont: 1em\/1.5 sans-serif;\r\n}\r\n\r\nbody {\r\n\tbackground-color: var(--bg);\r\n\tcolor: var(--fg);\r\n\tdisplay: flex;\r\n\theight: 100vh;\r\n}\r\n.switch,\r\n.switch__input {\r\n\tposition: relative;\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.switch {\r\n\tdisplay: block;\r\n\tfilter: grayscale(0.9);\r\n\tmargin: auto;\r\n\ttransition: filter var(--trans-dur) var(--trans-timing);\r\n\twidth: 6em;\r\n\theight: 2.75em;\r\n}\r\n.switch:has(:checked) {\r\n\tfilter: grayscale(0);\r\n}\r\n.switch__input {\r\n\tcursor: pointer;\r\n\toutline: transparent;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\t-webkit-appearance: none;\r\n\tappearance: none;\r\n\tz-index: 2;\r\n}\r\n.switch__bg {\r\n\tbackground:\r\n\t\tradial-gradient(\r\n\t\t\t7.75em 7.75em at 50% 4.0625em,\r\n\t\t\thsla(var(--hue),90%,90%,0) 29.9%,\r\n\t\t\thsl(var(--hue),90%,90%) 30.1% 31.9%,\r\n\t\t\thsl(0,0%,100%) 32.1% 35.2%,\r\n\t\t\thsl(var(--hue),50%,80%) 35.4% 36%,\r\n\t\t\thsl(var(--hue),90%,70%) 36.2% 41.8%,\r\n\t\t\thsl(var(--hue),90%,65%) 42% 43.6%,\r\n\t\t\thsl(var(--hue),50%,80%) 43.8% 44.4%,\r\n\t\t\thsl(0,0%,100%) 44.6% 46.6%,\r\n\t\t\thsl(var(--hue),90%,90%) 46.8% 49.3%,\r\n\t\t\thsl(var(--hue),90%,98%) 49.5% 49.8%,\r\n\t\t\thsla(var(--hue),90%,98%,0) 49.9%\r\n\t\t);\r\n\tclip-path: polygon(0 0,100% 0,100% 50%,75% 100%,25% 100%,0 50%);\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tinset: 0;\r\n\tz-index: 1;\r\n}\r\n.switch:before,\r\n.switch:after,\r\n.switch__input:before {\r\n\tcontent: \"\";\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n}\r\n.switch:before,\r\n.switch:after {\r\n\tbackground:\r\n\t\tradial-gradient(\r\n\t\t\t60% 60% at 50% 50%,\r\n\t\t\thsla(var(--hue),50%,80%,0) 34%,\r\n\t\t\thsl(var(--hue),50%,80%) 35% 40.5%,\r\n\t\t\thsl(0,0%,100%) 41.5% 49%,\r\n\t\t\thsla(0,0%,100%,0) 50%\r\n\t\t),\r\n\t\tlinear-gradient(\r\n\t\t\thsla(var(--hue),90%,65%,0) 30%,\r\n\t\t\thsl(var(--hue),90%,65%) 30% 40%,\r\n\t\t\thsla(var(--hue),90%,65%,0) 40%\r\n\t\t) 50% 0 \/ 40% 100% no-repeat,\r\n\t\tradial-gradient(\r\n\t\t\t50% 50% at 50% 50%,\r\n\t\t\thsl(var(--hue),90%,70%) 41%,\r\n\t\t\thsla(var(--hue),90%,70%,0) 42%\r\n\t\t),\r\n\t\tradial-gradient(\r\n\t\t\t75% 75% at 50% 52.5%,\r\n\t\t\thsl(0,0%,100%) 49.8%,\r\n\t\t\thsla(0,0%,100%,0) 50%\r\n\t\t),\r\n\t\tradial-gradient(\r\n\t\t\t112% 112% at 50% 55%,\r\n\t\t\thsl(var(--hue),90%,98%,0) 46.8%,\r\n\t\t\thsl(var(--hue),90%,98%) 47% 49.8%,\r\n\t\t\thsla(var(--hue),90%,98%,0) 50%\r\n\t\t),\r\n\t\tradial-gradient(\r\n\t\t\t100% 100% at 50% 50%,\r\n\t\t\thsl(var(--hue),90%,90%) 49.8%,\r\n\t\t\thsla(var(--hue),90%,90%,0) 50%\r\n\t\t);\r\n\tborder-radius: 50%;\r\n\ttop: auto;\r\n\tbottom: 0.0625em;\r\n\twidth: 1.5625em;\r\n\theight: 1.5625em;\r\n}\r\n.switch:before {\r\n\ttransform: rotate(-45deg);\r\n}\r\n.switch:after {\r\n\tright: 0;\r\n\tleft: auto;\r\n\ttransform: rotate(45deg);\r\n}\r\n.switch__input:before {\r\n\tbackground-color: hsl(0,0%,100%);\r\n\tborder-radius: 50%;\r\n\tbox-shadow:\r\n\t\t0 0 0 0.5em hsla(var(--hue),90%,40%,0),\r\n\t\t0 0.25em 0.5em 0.125em hsl(var(--hue),90%,50%);\r\n\ttop: 3.5em;\r\n\tleft: calc(50% - 0.625em);\r\n\twidth: 1.25em;\r\n\theight: 1.25em;\r\n\ttransform: rotate(-45deg) translateY(-3.125em) rotate(45deg);\r\n\ttransition:\r\n\t\tbackground-color var(--trans-dur) var(--trans-timing),\r\n\t\tbox-shadow 0.15s var(--trans-timing),\r\n\t\ttransform var(--trans-dur) var(--trans-timing);\r\n}\r\n.switch__input:checked:before {\r\n\tbackground-color: hsl(var(--hue),90%,70%);\r\n\ttransform: rotate(45deg) translateY(-3.125em) rotate(-45deg);\r\n}\r\n.switch__input:focus-visible:before {\r\n\tbox-shadow:\r\n\t\t0 0 0 0.5em hsla(var(--hue),90%,40%,0.5),\r\n\t\t0 0.25em 0.5em 0.125em hsl(var(--hue),90%,50%);\r\n}\r\n.switch__label {\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\twidth: 1px;\r\n\theight: 1px;\r\n}<\/pre>\n<p>You can customize the toggle switch by tweaking the CSS variables or adjusting the styles to fit your design scheme. Experiment with colors, sizes, and animations to match your website&#8217;s aesthetics.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created an Arched Toggle Switch. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates an arched toggle switch using HTML &amp; CSS. It generates a switch UI element. The switch allows&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10341,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-10335","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>Arched Toggle Switch Using HTML &amp; CSS &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Arched Toggle Switch Using HTML &amp; CSS. 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\/arched-toggle-switch-using-html-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arched Toggle Switch Using HTML &amp; CSS &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Arched Toggle Switch Using HTML &amp; CSS. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\" \/>\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-03-03T10:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-04T03:30:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"980\" \/>\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\/arched-toggle-switch-using-html-css\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Arched Toggle Switch Using HTML &#038; CSS\",\"datePublished\":\"2024-03-03T10:30:00+00:00\",\"dateModified\":\"2024-03-04T03:30:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\"},\"wordCount\":224,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png\",\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\",\"name\":\"Arched Toggle Switch Using HTML & CSS &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png\",\"datePublished\":\"2024-03-03T10:30:00+00:00\",\"dateModified\":\"2024-03-04T03:30:47+00:00\",\"description\":\"Here is a free code snippet to create a Arched Toggle Switch Using HTML & CSS. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png\",\"width\":1280,\"height\":980,\"caption\":\"Arched Toggle Switch Using HTML & CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#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\":\"Arched Toggle Switch Using HTML &#038; CSS\"}]},{\"@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":"Arched Toggle Switch Using HTML & CSS &#8212; CodeHim","description":"Here is a free code snippet to create a Arched Toggle Switch Using HTML & CSS. 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\/arched-toggle-switch-using-html-css\/","og_locale":"en_US","og_type":"article","og_title":"Arched Toggle Switch Using HTML & CSS &#8212; CodeHim","og_description":"Here is a free code snippet to create a Arched Toggle Switch Using HTML & CSS. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-03-03T10:30:00+00:00","article_modified_time":"2024-03-04T03:30:47+00:00","og_image":[{"width":1280,"height":980,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.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\/arched-toggle-switch-using-html-css\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Arched Toggle Switch Using HTML &#038; CSS","datePublished":"2024-03-03T10:30:00+00:00","dateModified":"2024-03-04T03:30:47+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/"},"wordCount":224,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png","articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/","url":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/","name":"Arched Toggle Switch Using HTML & CSS &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png","datePublished":"2024-03-03T10:30:00+00:00","dateModified":"2024-03-04T03:30:47+00:00","description":"Here is a free code snippet to create a Arched Toggle Switch Using HTML & CSS. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Arched-Toggle-Switch-Using-HTML-CSS.png","width":1280,"height":980,"caption":"Arched Toggle Switch Using HTML & CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/arched-toggle-switch-using-html-css\/#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":"Arched Toggle Switch Using HTML &#038; CSS"}]},{"@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":742,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10335","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=10335"}],"version-history":[{"count":1,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10335\/revisions"}],"predecessor-version":[{"id":11287,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10335\/revisions\/11287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/10341"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=10335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=10335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=10335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}