{"id":6533,"date":"2024-01-11T16:46:00","date_gmt":"2024-01-11T16:46:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6533"},"modified":"2024-01-22T14:47:20","modified_gmt":"2024-01-22T09:47:20","slug":"responsive-coverflow-carousel-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/","title":{"rendered":"Responsive Coverflow Carousel in JavaScript"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create a responsive coverflow carousel. It comes with mobile friendly design to slide the images with coverflow animation.<\/p>\n<h2>How to Create Responsive Coverflow Carousel in JavaScript<\/h2>\n<p>1. First of all, create the HTML structure for coverflow carousel as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">  &lt;div class=\"mouse\"&gt;&lt;\/div&gt;\r\n&lt;div id=\"app\"&gt;\r\n    &lt;section&gt;\r\n        &lt;div class=\"text\"&gt;\r\n            &lt;h2&gt;\r\n                special &lt;br \/&gt;\r\n                carousel\r\n            &lt;\/h2&gt;\r\n            &lt;p&gt;\r\n                This is a special carousel, reference\u300cWild Souls - Our\r\n                Wild Way\u300dpart.\r\n            &lt;\/p&gt;\r\n            &lt;a href=\"https:\/\/www.wildsouls.gr\/en\/\" target=\"_blank\"&gt;\r\n                &lt;span&gt;VIEW MORE!&lt;\/span&gt;\r\n            &lt;\/a&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"carousel\"&gt;\r\n            &lt;div class=\"card c1\"&gt;\r\n                &lt;img src=\"https:\/\/picsum.photos\/500\/550?random=113\" alt=\"\" \/&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"card c2\"&gt;\r\n                &lt;img src=\"https:\/\/picsum.photos\/500\/550?random=114\" alt=\"\" \/&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"card c3\"&gt;\r\n                &lt;img src=\"https:\/\/picsum.photos\/500\/550?random=115\" alt=\"\" \/&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/section&gt;<\/pre>\n<p>2. After that, add the following CSS styles into your project:<\/p>\n<pre class=\"prettyprint linenums lang-css\">@import url(\"https:\/\/fonts.googleapis.com\/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&amp;display=swap\");\r\n@-webkit-keyframes buttonHover {\r\n  100% {\r\n    transform: translateX(145%);\r\n  }\r\n}\r\n@keyframes buttonHover {\r\n  100% {\r\n    transform: translateX(145%);\r\n  }\r\n}\r\n@-webkit-keyframes moveCard {\r\n  95% {\r\n    left: 0;\r\n  }\r\n  100% {\r\n    left: 100%;\r\n  }\r\n}\r\n@keyframes moveCard {\r\n  95% {\r\n    left: 0;\r\n  }\r\n  100% {\r\n    left: 100%;\r\n  }\r\n}\r\n*,\r\n*::before,\r\n*::after {\r\n  box-sizing: border-box;\r\n  color: inherit;\r\n  list-style: none;\r\n}\r\n\r\nhtml,\r\nbody {\r\n  margin: 0;\r\n  padding: 0;\r\n}\r\n\r\nmain {\r\n  display: block;\r\n}\r\n\r\nimg {\r\n  width: 100%;\r\n  vertical-align: middle;\r\n}\r\n\r\na {\r\n  text-decoration: none;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\np {\r\n  margin: 0;\r\n  line-height: 1.5;\r\n}\r\n\r\nhtml {\r\n  font-size: 10px;\r\n  font-family: \"PT Sans\", sans-serif;\r\n}\r\n\r\nbody {\r\n  background-color: beige;\r\n\r\n}\r\n@media (max-width: 768px) {\r\n  body {\r\n    overflow-x: hidden;\r\n    overflow-y: auto;\r\n  }\r\n}\r\n\r\n#app {\r\n  width: 100%;\r\n  max-width: 1920px;\r\n  min-width: 320px;\r\n  margin: 0 auto;\r\n  overflow: hidden;\r\n}\r\n\r\n.mouse {\r\n  width: 60px;\r\n  height: 60px;\r\n  background-color: #000;\r\n  border-radius: 50%;\r\n  position: absolute;\r\n  top: 0;\r\n  right: 0;\r\n  transform: translate(-50%, -50%) scale(0.5);\r\n  pointer-events: none;\r\n  opacity: 0;\r\n  transition: opacity 0.5s, transform 0.5s;\r\n  z-index: 99;\r\n}\r\n.mouse::before {\r\n  content: \"&gt;\";\r\n  display: block;\r\n  color: #fff;\r\n  position: absolute;\r\n  top: 50%;\r\n  left: 50%;\r\n  transform: translate(-50%, -50%);\r\n  font-size: 2rem;\r\n  font-weight: 700;\r\n}\r\n.mouse.hover {\r\n  opacity: 1;\r\n  transform: translate(-50%, -50%) scale(1);\r\n}\r\n\r\nsection {\r\n  display: flex;\r\n  width: 80%;\r\n  padding: 100px 0;\r\n  margin: 0 auto;\r\n}\r\n@media (max-width: 768px) {\r\n  section {\r\n    flex-wrap: wrap;\r\n    width: 84%;\r\n  }\r\n}\r\nsection .text {\r\n  flex-basis: 50%;\r\n  margin-right: 12%;\r\n  position: relative;\r\n  z-index: 2;\r\n}\r\n@media (max-width: 768px) {\r\n  section .text {\r\n    flex-basis: 100%;\r\n    margin-right: 0;\r\n    margin-bottom: 16%;\r\n  }\r\n}\r\nsection .text h2 {\r\n  font-size: 6rem;\r\n  font-weight: 700;\r\n  letter-spacing: 2px;\r\n  line-height: 1;\r\n  margin-bottom: 20px;\r\n}\r\n@media (max-width: 940px) {\r\n  section .text h2 {\r\n    font-size: 5rem;\r\n  }\r\n}\r\nsection .text p {\r\n  font-size: 1.8rem;\r\n  margin-bottom: 20px;\r\n}\r\n@media (max-width: 940px) {\r\n  section .text p {\r\n    font-size: 1.6rem;\r\n  }\r\n}\r\nsection .text a {\r\n  display: inline-block;\r\n  background-color: #000;\r\n  padding: 16px 40px;\r\n  border-radius: 40px;\r\n  overflow: hidden;\r\n}\r\nsection .text a span {\r\n  display: block;\r\n  color: #fff;\r\n  font-size: 1.4rem;\r\n  font-weight: 700;\r\n  letter-spacing: 2px;\r\n  position: relative;\r\n  width: 100%;\r\n  transform: translateX(0);\r\n  -webkit-user-select: none;\r\n     -moz-user-select: none;\r\n      -ms-user-select: none;\r\n          user-select: none;\r\n}\r\n@media (max-width: 940px) {\r\n  section .text a span {\r\n    font-size: 1.3rem;\r\n  }\r\n}\r\nsection .text a span::before {\r\n  content: \"VIEW MORE!\";\r\n  display: inline-block;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n  transform: translateX(-145%);\r\n}\r\nsection .text a:hover span {\r\n  -webkit-animation: buttonHover linear 2s infinite;\r\n          animation: buttonHover linear 2s infinite;\r\n}\r\nsection .carousel {\r\n  flex-basis: 50%;\r\n  height: 500px;\r\n  position: relative;\r\n}\r\n@media (max-width: 768px) {\r\n  section .carousel {\r\n    flex-basis: 100%;\r\n    height: 400px;\r\n  }\r\n}\r\nsection .carousel .card {\r\n  width: 100%;\r\n  max-width: 450px;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 200%;\r\n  opacity: 0;\r\n  -webkit-user-select: none;\r\n     -moz-user-select: none;\r\n      -ms-user-select: none;\r\n          user-select: none;\r\n  transform-origin: bottom center;\r\n  transition: left 0.5s, opacity 0.5s, transform 0.5s;\r\n}\r\n@media (max-width: 768px) {\r\n  section .carousel .card {\r\n    max-width: 350px;\r\n  }\r\n}\r\nsection .carousel .card.c1 {\r\n  transform: translateX(-50%) rotate(15deg);\r\n}\r\nsection .carousel .card.c2 {\r\n  transform: translateX(-50%) rotate(-15deg);\r\n  transition-delay: 0.2s;\r\n}\r\nsection .carousel .card.c3 {\r\n  transform: translateX(-50%) rotate(0deg);\r\n  transition-delay: 0.4s;\r\n}\r\nsection .carousel .card.active {\r\n  left: 50%;\r\n  opacity: 1;\r\n}\r\nsection .carousel .card.move {\r\n  left: 0;\r\n  opacity: 0;\r\n  transition-delay: 0s;\r\n}\r\nsection .carousel .card.stage {\r\n  transform: translateX(-50%) rotate(0deg);\r\n  transition-delay: 0s;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code before closing of the body tag to activate the coverflow carousel.<\/p>\n<pre class=\"prettyprint linenums lang-js\">'use strict'\r\n;(function () {\r\n    let isMobile =\r\n        navigator.userAgent.match(\r\n            \/Line|J2ME|Opera Mini|SonyEricsson|Nokia|iPhone|iPod|BB10|PlayBook|android|webOS|BlackBerry|Windows Phone|Windows CE|Android\/i\r\n        ) != null\r\n    let scrollTop =\r\n        window.pageYOffset ||\r\n        document.documentElement.scrollTop ||\r\n        document.body.scrollTop\r\n    let carousel = document.querySelector('.carousel')\r\n    let cards = document.querySelectorAll('.card')\r\n    let c1 = document.querySelector('.c1')\r\n    let c2 = document.querySelector('.c2')\r\n    let c3 = document.querySelector('.c3')\r\n    let mouse = document.querySelector('.mouse')\r\n    let status = 0\r\n    let moving = false\r\n\r\n    function clickCard() {\r\n        if (!moving) {\r\n            moving = true\r\n            status++\r\n            changeCard(status)\r\n        }\r\n    }\r\n    function changeCard(status) {\r\n        if (status % 3 === 0) {\r\n            cards.forEach((card) =&gt; {\r\n                card.classList.remove('move')\r\n                card.classList.remove('stage')\r\n                card.classList.add('active')\r\n            })\r\n            hideCard()\r\n        }\r\n        if (status % 3 === 1) {\r\n            c3.classList.add('move')\r\n            c2.classList.add('stage')\r\n            hideCard(c3)\r\n        }\r\n        if (status % 3 === 2) {\r\n            c2.classList.add('move')\r\n            c1.classList.add('stage')\r\n            hideCard(c2)\r\n        }\r\n    }\r\n    function hideCard(el) {\r\n        if (el) {\r\n            setTimeout(() =&gt; {\r\n                el.classList.remove('active')\r\n                el.classList.remove('move')\r\n                el.classList.remove('stage')\r\n            }, 500)\r\n        }\r\n        setTimeout(() =&gt; {\r\n            moving = false\r\n        }, 700)\r\n    }\r\n    function cardEnter() {\r\n        mouse.classList.add('hover')\r\n    }\r\n    function cardLeave() {\r\n        mouse.classList.remove('hover')\r\n    }\r\n    function init() {\r\n        if (isMobile) mouse.style.display = 'none'\r\n        window.addEventListener('scroll', function () {\r\n            scrollTop =\r\n                window.pageYOffset ||\r\n                document.documentElement.scrollTop ||\r\n                document.body.scrollTop\r\n        })\r\n        window.addEventListener('mousemove', function (e) {\r\n            mouse.style.top = e.y + scrollTop + 'px'\r\n            mouse.style.left = e.x + 'px'\r\n        })\r\n        carousel.addEventListener('click', clickCard)\r\n        carousel.addEventListener('mouseenter', cardEnter)\r\n        carousel.addEventListener('mouseleave', cardLeave)\r\n        setTimeout(() =&gt; {\r\n            cards.forEach((card) =&gt; card.classList.add('active'))\r\n        }, 500)\r\n    }\r\n    init()\r\n})()<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this Coverflow Carousel 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 a responsive coverflow carousel. It comes with mobile friendly design to slide&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6539,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[59],"tags":[],"class_list":["post-6533","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>Responsive Coverflow Carousel in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. 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\/responsive-coverflow-carousel-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Responsive Coverflow Carousel in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-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:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:47:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.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\/carousel\/responsive-coverflow-carousel-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Responsive Coverflow Carousel in JavaScript\",\"datePublished\":\"2024-01-11T16:46:00+00:00\",\"dateModified\":\"2024-01-22T09:47:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/\"},\"wordCount\":105,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png\",\"articleSection\":[\"Carousel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/\",\"name\":\"Responsive Coverflow Carousel in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png\",\"datePublished\":\"2024-01-11T16:46:00+00:00\",\"dateModified\":\"2024-01-22T09:47:20+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png\",\"width\":1280,\"height\":960,\"caption\":\"Responsive Coverflow Carousel in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#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\":\"Responsive Coverflow Carousel in 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":"Responsive Coverflow Carousel in JavaScript &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. 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\/responsive-coverflow-carousel-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Responsive Coverflow Carousel in JavaScript &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:46:00+00:00","article_modified_time":"2024-01-22T09:47:20+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.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\/carousel\/responsive-coverflow-carousel-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Responsive Coverflow Carousel in JavaScript","datePublished":"2024-01-11T16:46:00+00:00","dateModified":"2024-01-22T09:47:20+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/"},"wordCount":105,"commentCount":1,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png","articleSection":["Carousel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/","url":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/","name":"Responsive Coverflow Carousel in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png","datePublished":"2024-01-11T16:46:00+00:00","dateModified":"2024-01-22T09:47:20+00:00","description":"Here is a lightweight JavaScript code snippet to create a responsive coverflow carousel. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Responsive-Coverflow-Carous.png","width":1280,"height":960,"caption":"Responsive Coverflow Carousel in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/carousel\/responsive-coverflow-carousel-in-javascript\/#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":"Responsive Coverflow Carousel in 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":4326,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6533","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=6533"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6533\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6539"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}