{"id":11141,"date":"2024-01-28T21:35:29","date_gmt":"2024-01-28T16:35:29","guid":{"rendered":"https:\/\/codehim.com\/?p=11141"},"modified":"2024-02-03T13:18:47","modified_gmt":"2024-02-03T08:18:47","slug":"animated-toggle-pills-using-css","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/","title":{"rendered":"Animated Toggle Pills Using CSS"},"content":{"rendered":"<p>This CSS code snippet helps you to create animated toggle pills using <a href=\"https:\/\/codehim.com\/html5-css3\/checkbox-css-style-examples\/\" target=\"_blank\" rel=\"noopener\">HTML checkbox inputs<\/a>. Choose from default, grow, or bounce animations, and even disabled styles. Easily integrate these animated toggle pills into your project for a sleek and engaging user experience.<\/p>\n<h2>How to Create Animated Toggle Pills Using CSS<\/h2>\n<p>1. Include the provided HTML code within the <code>&lt;body&gt;<\/code> tags of your HTML document. Customize the <code>&lt;fieldset&gt;<\/code> elements and their respective <code>&lt;legend&gt;<\/code> as needed for your specific content.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;fieldset&gt;\r\n  &lt;legend&gt;Slide Animation (Default)&lt;\/legend&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip\" role=\"switch\" value=\"Pear\" aria-label=\"Pear\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip\" role=\"switch\" value=\"Banana\" aria-label=\"Banana\" style=\"--color: #fd5\" checked \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip\" role=\"switch\" value=\"Apple\" aria-label=\"Apple\" style=\"--color:#f88\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip\" role=\"switch\" value=\"Peach\" aria-label=\"Peach\" style=\"--color:#fa3\" \/&gt;\r\n&lt;\/fieldset&gt;\r\n\r\n&lt;fieldset&gt;\r\n  &lt;legend&gt;Grow Animation&lt;\/legend&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip grow\" role=\"switch\" value=\"Pear\" aria-label=\"Pear\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip grow\" role=\"switch\" value=\"Banana\" aria-label=\"Banana\" style=\"--color: #fd5\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip grow\" role=\"switch\" value=\"Apple\" aria-label=\"Apple\" style=\"--color:#f88\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip grow\" role=\"switch\" value=\"Peach\" aria-label=\"Peach\" style=\"--color:#fa3\" checked \/&gt;\r\n&lt;\/fieldset&gt;\r\n\r\n&lt;fieldset&gt;\r\n  &lt;legend&gt;Bounce Animation&lt;\/legend&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Pear\" aria-label=\"Pear\"  \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Banana\" aria-label=\"Banana\" style=\"--color: #fd5\" \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Apple\" aria-label=\"Apple\" style=\"--color:#f88\" checked \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Peach\" aria-label=\"Peach\" style=\"--color:#fa3\" \/&gt;\r\n&lt;\/fieldset&gt;\r\n\r\n&lt;fieldset&gt;\r\n  &lt;legend&gt;Disabled Styles&lt;\/legend&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Pear\" aria-label=\"Pear\" disabled \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Banana\" aria-label=\"Banana\" style=\"--color: #fd5\" disabled\/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Apple\" aria-label=\"Apple\" style=\"--color:#f88\" checked disabled \/&gt;\r\n  &lt;input type=\"checkbox\" class=\"chip bounce\" role=\"switch\" value=\"Peach\" aria-label=\"Peach\" style=\"--color:#fa3\" checked disabled \/&gt;\r\n&lt;\/fieldset&gt;<\/pre>\n<p>2. Add the CSS code to customize the appearance and animation of the toggle pills. Adjust the colors, sizes, and animation styles according to your design preferences. Each <code>&lt;input&gt;<\/code> element has a <code>style<\/code> attribute where you can set the <code>--color<\/code> variable and customize individual styles.<\/p>\n<p>Copy the entire CSS code and paste it into your existing stylesheet or within <code>&lt;style&gt;<\/code> tags in the <code>&lt;head&gt;<\/code> of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-css\">input:where(.chip[type=\"checkbox\"]) {\r\n  --color: #6c6;\r\n  font-size: 1rem;\r\n  appearance: none;\r\n  position: relative;\r\n  padding: 0.5em 1em 0.5em 2em;\r\n  border: 1px solid #0004;\r\n  border-radius: 100em;\r\n  overflow: hidden;\r\n  margin: 0;\r\n  display: inline-block;\r\n  \r\n  &amp;::after {\r\n    content: attr(value);\r\n    white-space: pre;\r\n    line-height: 1;\r\n    position: relative;\r\n  }\r\n  \r\n  &amp;::before {\r\n    content: \"\";\r\n    display: inline-block;\r\n    width: 0.75em;\r\n    aspect-ratio: 1;\r\n    background: linear-gradient(currentcolor 0 0), linear-gradient(currentcolor 0 0);\r\n    background-position: -200% -2em, 2em -200%, 50% 50%;\r\n    background-size: 1em 0.125em, 0.125em 1em;\r\n    background-repeat: no-repeat;\r\n    background-color: var(--color);\r\n    border-radius: 50%;\r\n    position: absolute;\r\n    top: 50%;\r\n    left: 1.125em;\r\n    translate: -50% -50%;\r\n    rotate: 45deg;\r\n    transition: width 0.25s, background-position 0.5s;\r\n  }\r\n  \r\n  &amp;.grow, &amp;.bounce {\r\n    &amp;::before {\r\n      background-position: 50% 50%, 50% 50%, 50% 50%;\r\n      background-size: 0 0, 0 0;\r\n      transition: width 0.25s, background-size 0.5s;\r\n    }\r\n  }\r\n  \r\n  &amp;.bounce {\r\n    &amp;::before {\r\n      transition-timing-function: ease-in-out, cubic-bezier(0.75, 0, 0.5, 2);\r\n    }\r\n  }\r\n  \r\n  &amp;:checked {\r\n    &amp;::before {\r\n      width: 200%;\r\n      background-position: 50% 50%, 50% 50%, 50% 50%;\r\n      background-size: 1em 0.125em, 0.125em 1em;\r\n    }\r\n  }\r\n  \r\n  &amp;:disabled {\r\n    --color: #eee !important;\r\n    color: #6c6c6c;\r\n    border-color: #0001;\r\n  }\r\n  \r\n  &amp;:hover:not(:disabled) {\r\n    border-color: #000a;\r\n    background-color: rgb(from var(--color) r g b \/ 10%);\r\n    transition: 0.4s;\r\n  }\r\n}\r\n\r\n@media print {\r\n  input:where(.chip[type=\"checkbox\"]) {\r\n    &amp;, &amp;::before, &amp;::after {\r\n      -webkit-print-color-adjust: exact;\r\n      print-color-adjust: exact;\r\n    }\r\n  }\r\n}\r\n\r\n@media (prefers-reduced-motion) {\r\n  input:where(.chip[type=\"checkbox\"]) {\r\n    &amp;, &amp;::before, &amp;::after {\r\n      transition: none !important;\r\n    }\r\n  }\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\/* DEMO - START *\/\r\nbody {\r\n  margin: 0;\r\n  min-height: 100vh;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  flex-wrap: wrap;\r\n  flex-direction: column;\r\n  gap: 3em;\r\n  font-family: Roboto, Helvetica, Arial, sans-serif;\r\n}\r\n\r\nfieldset {\r\n  border-color: #0000;\r\n\r\n  &amp; legend {\r\n    color: #666696;\r\n    font-weight: 500;\r\n  }\r\n}\r\n\/* DEMO - END *\/<\/pre>\n<p>With the HTML and CSS in place, your toggle pills are ready to shine. Open your HTML file in a web browser, and you&#8217;ll witness the delightful slide, grow, and bounce animations. You can experiment further and adapt these pills to suit the unique style of your web project.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created Animated Toggle Pills Using CSS. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This CSS code snippet helps you to create animated toggle pills using HTML checkbox inputs. Choose from default, grow, or&#8230;<\/p>\n","protected":false},"author":1,"featured_media":11212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-11141","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>Animated Toggle Pills Using CSS &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Animated Toggle Pills Using 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\/animated-toggle-pills-using-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Animated Toggle Pills Using CSS &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Animated Toggle Pills Using CSS. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-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-01-28T16:35:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-03T08:18:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.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\/animated-toggle-pills-using-css\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Animated Toggle Pills Using CSS\",\"datePublished\":\"2024-01-28T16:35:29+00:00\",\"dateModified\":\"2024-02-03T08:18:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/\"},\"wordCount\":216,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png\",\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/\",\"name\":\"Animated Toggle Pills Using CSS &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png\",\"datePublished\":\"2024-01-28T16:35:29+00:00\",\"dateModified\":\"2024-02-03T08:18:47+00:00\",\"description\":\"Here is a free code snippet to create a Animated Toggle Pills Using CSS. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png\",\"width\":1280,\"height\":960,\"caption\":\"Animated Toggle Pills Using CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-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\":\"Animated Toggle Pills Using 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":"Animated Toggle Pills Using CSS &#8212; CodeHim","description":"Here is a free code snippet to create a Animated Toggle Pills Using 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\/animated-toggle-pills-using-css\/","og_locale":"en_US","og_type":"article","og_title":"Animated Toggle Pills Using CSS &#8212; CodeHim","og_description":"Here is a free code snippet to create a Animated Toggle Pills Using CSS. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-28T16:35:29+00:00","article_modified_time":"2024-02-03T08:18:47+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-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\/animated-toggle-pills-using-css\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Animated Toggle Pills Using CSS","datePublished":"2024-01-28T16:35:29+00:00","dateModified":"2024-02-03T08:18:47+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/"},"wordCount":216,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png","articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/","url":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/","name":"Animated Toggle Pills Using CSS &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png","datePublished":"2024-01-28T16:35:29+00:00","dateModified":"2024-02-03T08:18:47+00:00","description":"Here is a free code snippet to create a Animated Toggle Pills Using CSS. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-css\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/02\/Animated-Toggle-Pills-Using-CSS.png","width":1280,"height":960,"caption":"Animated Toggle Pills Using CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/animated-toggle-pills-using-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":"Animated Toggle Pills Using 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":1516,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11141","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=11141"}],"version-history":[{"count":2,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11141\/revisions"}],"predecessor-version":[{"id":11239,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/11141\/revisions\/11239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/11212"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=11141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=11141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=11141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}