{"id":8421,"date":"2024-01-11T17:50:00","date_gmt":"2024-01-11T17:50:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8421"},"modified":"2024-01-22T15:51:43","modified_gmt":"2024-01-22T10:51:43","slug":"simple-rotating-image-carousel","status":"publish","type":"post","link":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/","title":{"rendered":"Simple Rotating Image Carousel"},"content":{"rendered":"<p>This code creates a simple rotating image carousel using HTML, CSS, and jQuery. It displays a set of images in a circular arrangement, allowing you to navigate through them using navigation buttons. The main functionality involves smoothly rotating the carousel when you click the &#8220;Previous&#8221; and &#8220;Next&#8221; buttons. This code is helpful for adding an interactive and visually appealing image carousel to your web projects.<\/p>\n<p>Whether you&#8217;re <a href=\"https:\/\/codehim.com\/portfolio\/developer-portfolio-template-using-css-and-jquery\/\" target=\"_blank\" rel=\"noopener\">building a portfolio<\/a> website, e-commerce platform, event site, or any other web project, this carousel can engage users and effectively present images or content in an engaging and dynamic way.<\/p>\n<h2>How to Create a Simple Rotating Image Carousel<\/h2>\n<p>1. Copy and paste the following HTML code for the carousel. This code includes the carousel container and navigation buttons. You can customize the number of image panels by duplicating the <code>&lt;div class=\"panel\"&gt;<\/code> elements and assigning different background images to them.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"holder\"&gt;  \r\n  &lt;div class=\"spinner\"&gt;\r\n    &lt;div class=\"panel a\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel b\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel c\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel d\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel e\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel f\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel g\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel h\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel i\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel j\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel k\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel l\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel m\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel n\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel o\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"panel p\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"fade\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"pagination\"&gt;\r\n  &lt;button type=\"button\" id=\"prev\"&gt;&amp;#8592;&lt;\/button&gt;\r\n  &lt;button type=\"button\" id=\"next\"&gt;&amp;#8594;&lt;\/button&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. Now, add the following CSS code to your project. Replace the background image URLs in the CSS code (<code>.a<\/code>, <code>.b<\/code>, <code>.c<\/code>, &#8230;) with your own image URLs.<\/p>\n<pre class=\"prettyprint linenums lang-css\">@import url(\"https:\/\/fonts.googleapis.com\/css2?family=Roboto:wght@900&amp;display=swap\");\r\n* {\r\n  --ang: 0;\r\n}\r\n.cd__main{\r\n   background: #111 !important;\r\n  display: block !important;\r\n   min-height: 720px;\r\n}\r\nhtml, body {\r\n  height: 100%;\r\n}\r\n\r\n\r\n.spinner {\r\n  transform-style: preserve-3d;\r\n  position: relative;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  transform: rotateY(calc(var(--ang) * 1deg)) translateY(-12px);\r\n  transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.holder {\r\n  width: 600px;\r\n  height: 200px;\r\n  display: flex;\r\n  justify-content: center;\r\n  align-items: center;\r\n  perspective: 700px;\r\n  perspective-origin: center;\r\n  margin: 150px auto;\r\n}\r\n\r\n.panel {\r\n  border-radius: 5px;\r\n  width: 100px;\r\n  height: 100px;\r\n  position: absolute;\r\n  background-size: cover;\r\n  background-position: 50% 50%;\r\n}\r\n\r\n.panel:nth-child(1) {\r\n  transform: rotateY(0deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(2) {\r\n  transform: rotateY(22.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(3) {\r\n  transform: rotateY(45deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(4) {\r\n  transform: rotateY(67.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(5) {\r\n  transform: rotateY(90deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(6) {\r\n  transform: rotateY(112.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(7) {\r\n  transform: rotateY(135deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(8) {\r\n  transform: rotateY(157.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(9) {\r\n  transform: rotateY(180deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(10) {\r\n  transform: rotateY(202.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(11) {\r\n  transform: rotateY(225deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(12) {\r\n  transform: rotateY(247.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(13) {\r\n  transform: rotateY(270deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(14) {\r\n  transform: rotateY(292.5deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(15) {\r\n  transform: rotateY(315deg) translateZ(400px);\r\n}\r\n\r\n.panel:nth-child(16) {\r\n  transform: rotateY(337.5deg) translateZ(400px);\r\n}\r\n\r\n.pagination {\r\n  width: 600px;\r\n  height: 44px;\r\n  margin-top: 10px;\r\n  text-align: center;\r\n  margin: 10px auto;\r\n}\r\n\r\n.pagination button {\r\n  padding: 0;\r\n  border: none;\r\n  cursor: pointer;\r\n  width: 44px;\r\n  color: black;\r\n  background: #fffa;\r\n  height: 44px;\r\n  margin: 0 10px;\r\n  font-family: \"Roboto\", sans-serif;\r\n  font-size: 20px;\r\n  border-radius: 100%;\r\n  transition: all 0.2s ease-in-out;\r\n}\r\n\r\n.pagination button:hover {\r\n  background: #fffc;\r\n}\r\n\r\n.pagination button:active {\r\n  background: #ffff;\r\n}\r\n\r\n@keyframes spin {\r\n  0% {\r\n    transform: rotateY(0deg);\r\n  }\r\n  100% {\r\n    transform: rotateY(360deg);\r\n  }\r\n}\r\n.fade {\r\n  background: #0006;\r\n  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);\r\n  width: 860px;\r\n  height: 200px;\r\n  position: absolute;\r\n  transform: rotateY(calc(var(--ang) * -1deg)) translateZ(110px);\r\n  transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.a {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1516727003284-a96541e51e9c?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjczNzB8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.b {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1691389694412-266f872999c6?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjY5NTh8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.c {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1606391901318-07003db08d63?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjY5OTJ8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.d {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1610785396756-24bd1889ddae?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcwMjl8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.e {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1505849871170-7f94cf84f4d2?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcwODJ8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.f {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1518087456308-c3976320f908?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcxMTB8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.g {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1558724040-9de64afade55?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcxNDV8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.h {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1604877098440-b7b440241686?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcxOTR8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.i {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1518573484273-eb277fe4b036?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcyMTl8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.j {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1485230895905-ec40ba36b9bc?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcyMzZ8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.k {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1546877625-cb8c71916608?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcyNTl8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.l {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1551727974-8af20a3322f1?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjcyNzR8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.m {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1436759644647-e274ee931eaa?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5OTU1Mjl8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.n {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1533779671378-06561cdaacb5?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjczMDd8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.o {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1544377570-a774bea2355c?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjczMzN8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}\r\n\r\n.p {\r\n  background-image: url(https:\/\/images.unsplash.com\/photo-1586693231040-e89840e7d805?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTM5MjczNDV8&amp;ixlib=rb-4.0.3&amp;q=85);\r\n}<\/pre>\n<p>3. Load the <a href=\"https:\/\/jquery.com\" target=\"_blank\" rel=\"noopener\">jQuery<\/a> by adding the following CDN link just before closing the body element.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.7.1\/jquery.min.js'&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>4. Finally, add the following JavaScript function between &lt;script&gt; tag to activate the next\/previous functionality.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var ang = 0;\r\n\r\n$(\"#prev\").click(function(){\r\n\tang = ang + 22.5;\r\n  $(\"*\").css(\"--ang\", ang);\r\n});\r\n\r\n$(\"#next\").click(function(){\r\n\tang = ang - 22.5;\r\n  $(\"*\").css(\"--ang\", ang);\r\n});<\/pre>\n<p>That&#8217;s it! You&#8217;ve successfully integrated the &#8220;Simple Rotating Image Carousel&#8221; into your web project. Feel free to further customize the styles and content to match your website&#8217;s design and requirements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates a simple rotating image carousel using HTML, CSS, and jQuery. It displays a set of images in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8426,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[59],"tags":[],"class_list":["post-8421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-carousel"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple Rotating Image Carousel &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. 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\/carousel\/simple-rotating-image-carousel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Rotating Image Carousel &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\" \/>\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-11T17:50:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:51:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.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\/carousel\/simple-rotating-image-carousel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Simple Rotating Image Carousel\",\"datePublished\":\"2024-01-11T17:50:00+00:00\",\"dateModified\":\"2024-01-22T10:51:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\"},\"wordCount\":236,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png\",\"articleSection\":[\"Carousel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\",\"url\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\",\"name\":\"Simple Rotating Image Carousel &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png\",\"datePublished\":\"2024-01-11T17:50:00+00:00\",\"dateModified\":\"2024-01-22T10:51:43+00:00\",\"description\":\"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png\",\"width\":1280,\"height\":960,\"caption\":\"Simple Rotating Image Carousel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Carousel\",\"item\":\"https:\/\/codehim.com\/category\/carousel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Simple Rotating Image Carousel\"}]},{\"@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":"Simple Rotating Image Carousel &#8212; CodeHim","description":"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. 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\/carousel\/simple-rotating-image-carousel\/","og_locale":"en_US","og_type":"article","og_title":"Simple Rotating Image Carousel &#8212; CodeHim","og_description":"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T17:50:00+00:00","article_modified_time":"2024-01-22T10:51:43+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.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\/carousel\/simple-rotating-image-carousel\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Simple Rotating Image Carousel","datePublished":"2024-01-11T17:50:00+00:00","dateModified":"2024-01-22T10:51:43+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/"},"wordCount":236,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png","articleSection":["Carousel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/","url":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/","name":"Simple Rotating Image Carousel &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png","datePublished":"2024-01-11T17:50:00+00:00","dateModified":"2024-01-22T10:51:43+00:00","description":"Here is free code snippet to create a simple rotating image carousel using HTML and CSS. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Rotating-Image-Carousel.png","width":1280,"height":960,"caption":"Simple Rotating Image Carousel"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/carousel\/simple-rotating-image-carousel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Carousel","item":"https:\/\/codehim.com\/category\/carousel\/"},{"@type":"ListItem","position":3,"name":"Simple Rotating Image Carousel"}]},{"@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":4983,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8421","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=8421"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8421\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8426"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}