{"id":4329,"date":"2019-11-26T04:22:09","date_gmt":"2019-11-26T04:22:09","guid":{"rendered":"https:\/\/webdevtrick.com\/?p=4329"},"modified":"2019-11-26T04:22:09","modified_gmt":"2019-11-26T04:22:09","slug":"javascript-quote-slider","status":"publish","type":"post","link":"https:\/\/webdevtrick.com\/javascript-quote-slider\/","title":{"rendered":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides"},"content":{"rendered":"<p><strong>How we can create a quote slider with lines, author name, and author&#8217;s image using HTML CSS JS? Solution: See this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides.<\/strong><\/p>\n<p>Previously I have shared <span><a href=\"https:\/\/webdevtrick.com\/responsive-testimonial-slider\/\" target=\"_blank\" rel=\"noopener noreferrer\">testimonial slider<\/a><\/span>, it like a little similar to that but it is a <strong>quote slider<\/strong>. Basically quote slider contains<strong> meaningful or motivating quotes<\/strong> by famous persons with their <strong>name and image<\/strong>. And it pretends like a <strong>slider<\/strong>, you can <strong>change quotes by sliding<\/strong> them using <strong>left-right navigation<\/strong> buttons.<\/p>\n<p>Today you will learn to create <strong>JavaScript CSS slider for quotes<\/strong>. Basically, there are <strong>four famous quotes<\/strong> with <strong>author names and images<\/strong> in slides. The <span><a href=\"https:\/\/webdevtrick.com\/tag\/image\/\" target=\"_blank\" rel=\"noopener noreferrer\">image<\/a><\/span> is placed on the left slides section and quote on the right side. Below the <strong>quotes line<\/strong>, you will see the author&#8217;s name and in the bottom-right side is a like button and counter.<\/p>\n<p>So, Today I am sharing <strong>JavaScript Quote Slider<\/strong> With <strong>Controls<\/strong> and Like Button. There I have used <strong>pure JavaScript<\/strong> to creating the program, without <span><a href=\"https:\/\/webdevtrick.com\/tag\/jquery\" target=\"_blank\" rel=\"noopener noreferrer\">jQuery<\/a><\/span> or any library. And all the styles are <strong>based on CSS<\/strong> there is no library like bootstrap. If we use libraries like jQuery and Bootstrap then we have to work less also we can save time when creating this.<\/p>\n<p>If you are thinking now how this quotes slides actually is, then see the preview given below.<\/p>\n<h3>Preview Of CSS JS Quotes Slides<\/h3>\n<p>See this video preview to getting an idea of how these slides of quotes look like.<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4329-1\" width=\"640\" height=\"417\" loop autoplay preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/quotes-slider.mp4?_=1\" \/><a href=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/quotes-slider.mp4\">https:\/\/webdevtrick.com\/wp-content\/uploads\/quotes-slider.mp4<\/a><\/video><\/div>\n<a class=\"maxbutton-2 maxbutton maxbutton-demo\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/webdevtrick.com\/demos\/js-quote-slider\/\"><span class='mb-text'>Live Demo<\/span><\/a>\n<p>Now you can see this visually, also you can see it live by pressing the button given above. If you like this then get the <strong>source code<\/strong> of its.<\/p>\n<p><span style=\"font-size: 14pt;\">You May Also Like:<\/span><\/p>\n<ul>\n \t<span><\/p>\n<li><a href=\"https:\/\/webdevtrick.com\/javascript-portfolio-navigation\/\" target=\"_blank\" rel=\"noopener noreferrer\">JavaScript Portfolio Navigation<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/css-responsive-timeline-slider\/\" target=\"_blank\" rel=\"noopener noreferrer\">Responsive Timeline Slider<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/custom-error-404-page\/\" target=\"_blank\" rel=\"noopener noreferrer\">Counting Error 404 Page<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/css-multi-layer-navigation\/\" target=\"_blank\" rel=\"noopener noreferrer\">CSS Multi-Layer Navigation<\/a><\/li>\n<p><\/span>\n<\/ul>\n<h2>JavaScript Quote Slider Source Code<\/h2>\n<p>Before<strong> sharing source code<\/strong>, let&#8217;s talk about it. First I have created the layout using HTML, I have created a main div and placed an element for photos, buttons for left &amp; right <span><a href=\"https:\/\/webdevtrick.com\/tag\/navigation\" target=\"_blank\" rel=\"noopener noreferrer\">navigation<\/a><\/span>, space for quotes and element for the <strong>like<\/strong> wrapper. For the <strong>heart icon<\/strong> on the like button, I have used the font-awesome library.<\/p>\n<p>Now <strong>using CSS<\/strong> I have placed all the elements in the right place, as you can see in the preview. I gave the width of the elements in PX (pixel) but there also placed a max value like: <span class=\"lang:default decode:true crayon-inline \">max-width: max-height:<\/span> . Also done basic works <strong>with CSS<\/strong> like margin, padding, color, etc. For reducing the fonts and other placements in small screen size, I have used the CSS <strong>@media<\/strong> query.<\/p>\n<p><strong>JavaScript<\/strong> handling the main feature of the program. I have stored <strong>quotes data<\/strong> like <strong>line, author name, the image<\/strong> in JavaScript variable. Create a variable named data and stored values inside it. And stored element&#8217;s ID and Class values inside another var. All the functions are based on JS DOM (<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document_Object_Model\/Introduction\" target=\"_blank\" rel=\"noopener noreferrer\">info<\/a>). <strong>Next and previous buttons<\/strong> functions are based on <span class=\"lang:default decode:true crayon-inline \">if {} &amp; else if{}<\/span> statement.<\/p>\n<p>Left all other things you will understand after <strong>getting the codes<\/strong>, I can&#8217;t explain all in writing. For creating this program you have to create 3 files. First for <strong>HTML<\/strong>, second for <strong>CSS<\/strong>, and the third for <strong>JavaScript<\/strong>. Follow the steps to creating this without any error.<\/p>\n<p><span style=\"font-size: 14pt;\">index.html<\/span><\/p>\n<p>Create an HTML file named &#8216;<em><strong>index.html<\/strong><\/em>&#8216; and put these codes given below.<\/p>\n<pre class=\"height-set:true height:750 lang:xhtml decode:true \" title=\"index.html\">&lt;!DOCTYPE html&gt;\r\n&lt;!-- Code By Webdevtrick ( https:\/\/webdevtrick.com ) --&gt;\r\n&lt;html lang=\"en\" &gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"UTF-8\"&gt;\r\n  &lt;title&gt;JS Quote Slider | Webdevtrick.com&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/meyer-reset\/2.0\/reset.min.css\"&gt;\r\n  &lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Notable&amp;display=swap\" rel=\"stylesheet\"&gt;\r\n  &lt;link rel='stylesheet' href='https:\/\/maxcdn.bootstrapcdn.com\/font-awesome\/4.4.0\/css\/font-awesome.min.css'&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"style.css\"&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div class=\"container\"&gt;\r\n  &lt;div class=\"inner-section\"&gt;\r\n    &lt;div class=\"quote-container\"&gt;\r\n      &lt;div class=\"photo-wrapper\"&gt;\r\n        &lt;div class=\"photo-overlay\"&gt;\r\n          &lt;div class=\"quote\"&gt;&lt;i class=\"fa fa-quote-left\" aria-hidden=\"true\"&gt;&lt;\/i&gt;&lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;img id=\"quote-image\" src=\"\" \/&gt;\r\n        &lt;div class=\"nav-btns\"&gt;\r\n          &lt;div id=\"move-left\"&gt;&lt;span&gt;&lt;i class=\"fa fa-angle-left\"&gt;&lt;\/i&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n          &lt;div id=\"move-right\"&gt;&lt;span&gt;&lt;i class=\"fa fa-angle-right\"&gt;&lt;\/i&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/div&gt;\r\n      &lt;div class=\"details-wrapper\"&gt;\r\n        &lt;div id=\"quote-header\"&gt;\r\n          &lt;div class=\"like-wrapper\"&gt;\r\n            &lt;span class=\"heart\"&gt;&lt;i class=\"fa fa-heart\" aria-hidden=\"true\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n            &lt;span id=\"quote-likes\"&gt;111&lt;\/span&gt;\r\n          &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div id=\"quote-text\"&gt;&lt;\/div&gt;\r\n        &lt;div id=\"quote-footer\"&gt;- &lt;span id=\"quote-author\"&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script  src=\"function.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><span style=\"font-size: 14pt;\">style.css<\/span><\/p>\n<p>Now create a CSS file named &#8216;<em><strong>style.css<\/strong><\/em>&#8216; and put these codes given here.<\/p>\n<pre class=\"height-set:true height:750 lang:css decode:true \" title=\"style.css\">\/* Code By Webdevtrick ( https:\/\/webdevtrick.com ) *\/\r\nhtml, body {\r\n  height: 100%;\r\n  width: 100%;\r\n  margin: 0;\r\n  padding: 0;\r\n}\r\n\r\n.container {\r\n  height: 93%;\r\n  font-family: 'Notable', sans-serif;\r\n  letter-spacing: 2px;\r\n}\r\n.container .inner-section {\r\n  min-height: 470px;\r\n  height: 100%;\r\n  width: 100%;\r\n  position: relative;\r\n}\r\n.container .inner-section .quote-container {\r\n  width: 670px;\r\n  height: 470px;\r\n  background: #79b9ff;\r\n  position: absolute;\r\n  left: 0;\r\n  right: 0;\r\n  top: 0;\r\n  bottom: 0;\r\n  margin: auto;\r\n  max-width: 100%;\r\n  max-height: 100%;\r\n  overflow: none;\r\n  -webkit-box-shadow: 1px 37px 34px -13px rgba(0, 0, 0, 0.75);\r\n  -moz-box-shadow: 1px 37px 34px -13px rgba(0, 0, 0, 0.75);\r\n  box-shadow: 1px 37px 34px -13px rgba(0, 0, 0, 0.75);\r\n}\r\n.container .inner-section .quote-container .photo-wrapper {\r\n  position: absolute;\r\n  width: 25%;\r\n  z-index: 1;\r\n  overflow: hidden;\r\n  left: 0;\r\n  height: 470px;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .photo-overlay {\r\n  background: #000;\r\n  z-index: 85;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n  opacity: .6;\r\n  text-align: center;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .photo-overlay .quote {\r\n  color: #FFF;\r\n  font-size: 50px;\r\n  margin-top: 30px;\r\n  opacity: .3;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper img {\r\n  height: 470px;\r\n  margin-left: -75px;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns {\r\n  position: absolute;\r\n  bottom: 10px;\r\n  font-size: 30px;\r\n  font-weight: bold;\r\n  color: #FFF;\r\n  width: 100%;\r\n  text-align: center;\r\n  padding-left: 15px;\r\n  z-index: 9999;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-left,\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-right {\r\n  float: left;\r\n  width: 60px;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-left &gt; span,\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-right &gt; span {\r\n  cursor: pointer;\r\n  font-weight: bold;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-left &gt; span:hover,\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns #move-right &gt; span:hover {\r\n  color: #179ffe;\r\n}\r\n.container .inner-section .quote-container .photo-wrapper .nav-btns :after {\r\n  content: '';\r\n  display: block;\r\n  clear: both;\r\n}\r\n.container .inner-section .quote-container .details-wrapper {\r\n  width: 70%;\r\n  z-index: 1000;\r\n  height: 100%;\r\n  padding-right: 30px;\r\n  position: absolute;\r\n  right: 0;\r\n  text-transform: uppercase;\r\n  color: #FFF;\r\n  min-height: 470px;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper {\r\n  background: #212121;\r\n  border-radius: 15px;\r\n  width: auto;\r\n  padding: 6px 10px 7px 10px;\r\n  position: absolute;\r\n  bottom: 20px;\r\n  right: 20px;\r\n  cursor: pointer;\r\n  font-size: 12px;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper .heart {\r\n  display: inline-block;\r\n  font-size: 16px;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper .heart:hover {\r\n  transform: rotate(360deg);\r\n  transition: all 0.3s ease-in-out 0s;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper .liked {\r\n  color: red;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper #quote-likes {\r\n  display: inline-block;\r\n  padding-left: 7px;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-header :hover {\r\n  background: #ff3d3d;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-text {\r\n  margin: 40px 25px 10px 35px;\r\n  font-size: 45px;\r\n  font-weight: bold;\r\n  line-height: 49px;\r\n}\r\n.container .inner-section .quote-container .details-wrapper #quote-footer {\r\n  position: absolute;\r\n  bottom: 10px;\r\n  font-size: 14px;\r\n  font-weight: bold;\r\n  margin: 20px 25px 10px 35px;\r\n}\r\n.container .inner-section .quote-container :after {\r\n  content: '';\r\n  display: block;\r\n  clear: both;\r\n}\r\n\r\n@media (max-width: 630px) {\r\n  .container .inner-section .quote-container .details-wrapper #quote-text {\r\n    font-size: 25px;\r\n    line-height: 35px;\r\n  }\r\n  .container .inner-section .quote-container .details-wrapper #quote-header .like-wrapper {\r\n    bottom: 40px;\r\n    right: 20px;\r\n\r\n  }\r\n}<\/pre>\n<p><span style=\"font-size: 14pt;\">function.js<\/span><\/p>\n<p>The last step, create a JavaScript file named &#8216;<em><strong>function.js<\/strong><\/em>&#8216; and put the codes.<\/p>\n<pre class=\"height-set:true height:750 lang:js decode:true \" title=\"function.js\">\/\/ Code By Webdevtrick ( https:\/\/webdevtrick.com )\r\n(function() {\r\n  function getRandomInt(min, max) {\r\n    return Math.floor(Math.random() * (max - min + 1)) + min;\r\n  }\r\n\r\n  var data = [{\r\n    \"author\": \"Einstein\",\r\n    \"quote\": \"I have no special talent. I am only passionately curious.\",\r\n    \"image\": \"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/3\/3e\/Einstein_1921_by_F_Schmutzer_-_restoration.jpg\",\r\n    \"likes\": \"1032\",\r\n    \"has_liked\": 0\r\n  }, {\r\n    \"author\": \"Shakespeare\",\r\n    \"quote\": \"Wisely, and slow. They stumble that run fast.\",\r\n    \"image\": \"https:\/\/www.williamshakespeare.net\/images\/shakespeare.jpg\",\r\n    \"likes\": \"4122\",\r\n    \"has_liked\": 0\r\n  }, {\r\n    \"author\": \"Mother Teresa\",\r\n    \"quote\": \"If you judge people, you have no time to love them.\",\r\n    \"image\": \"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/d\/d6\/Mother_Teresa_1.jpg\",\r\n    \"likes\": \"2342\",\r\n    \"has_liked\": 0\r\n  }, {\r\n    \"author\": \"Elon Musk\",\r\n    \"quote\": \"Dichotomy between sense of wonder and what is wrong.\",\r\n    \"image\": \"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/e\/ed\/Elon_Musk_Royal_Society.jpg\",\r\n    \"likes\": \"3315\",\r\n    \"has_liked\": 0\r\n  }];\r\n\r\n  var options = {\r\n    imgDomElement: \"quote-image\",\r\n    quoteDomElement: \"quote-text\",\r\n    authorDomElement: \"quote-author\",\r\n    likeDomElement: \"quote-likes\"\r\n  };\r\n\r\n  var quoteBrowser = function(data, elements) {\r\n    this.domElements = elements;\r\n    this.quotes = data;\r\n    this.currentQuoteIndex = 0;\r\n    this.bindedElements = {};\r\n    \r\n    this.bindedElements.img = document.getElementById(this.domElements.imgDomElement);\r\n    this.bindedElements.quote = document.getElementById(this.domElements.quoteDomElement);\r\n    this.bindedElements.author = document.getElementById(this.domElements.authorDomElement);\r\n    this.bindedElements.likes = document.getElementById(this.domElements.likeDomElement);    \r\n  };\r\n\r\n  quoteBrowser.prototype.incrementCurrentQuoteLikes = function() {\r\n    var currentQuote = this.quotes[this.currentQuoteIndex];\r\n\r\n    if (!currentQuote.has_liked) {\r\n      currentQuote.likes++;\r\n      currentQuote.has_liked = 1;\r\n    } else {\r\n      currentQuote.likes--;\r\n      currentQuote.has_liked = 0;\r\n    }\r\n\r\n    this.setQuote(currentQuote);\r\n  };\r\n\r\n  quoteBrowser.prototype.scrollQuote = function(direction) {\r\n    var currentIndex = this.currentQuoteIndex;\r\n\r\n    if (direction === 'prev') currentIndex--;\r\n    else currentIndex++;\r\n\r\n    if (currentIndex &gt;= this.quotes.length) currentIndex = 0;\r\n    else if (currentIndex &lt; 0) currentIndex = this.quotes.length - 1;\r\n\r\n    this.currentQuoteIndex = currentIndex;\r\n\r\n    this.setQuote(this.quotes[currentIndex]);\r\n  };\r\n\r\n  quoteBrowser.prototype.init = function() {\r\n    var prevArrow = document.getElementById(\"move-left\")\r\n    var nextArrow = document.getElementById(\"move-right\");\r\n    var likeButton = document.getElementsByClassName(\"like-wrapper\")[0];\r\n\r\n    var browser = this;\r\n\r\n    if (prevArrow.addEventListener) {\r\n      prevArrow.addEventListener('click', function() {\r\n        browser.scrollQuote('prev')\r\n      }, false);\r\n\r\n      nextArrow.addEventListener('click', function() {\r\n        browser.scrollQuote('next')\r\n      }, false);\r\n\r\n      likeButton.addEventListener('click', function() {\r\n        browser.incrementCurrentQuoteLikes()\r\n      }, false);\r\n    } else if (prevArrow.attachEvent) {\r\n      prevArrow.attachEvent('onclick', function() {\r\n        browser.scrollQuote('prev')\r\n      });\r\n\r\n      nextArrow.attachEvent('onclick', function() {\r\n        browser.scrollQuote('next')\r\n      });\r\n\r\n      likeButton.attachEvent('onclick', function() {\r\n        browser.incrementCurrentQuoteLikes()\r\n      });\r\n    }\r\n\r\n  };\r\n\r\n  quoteBrowser.prototype.getRandomQuote = function() {\r\n    var random = getRandomInt(0, this.quotes.length - 1);\r\n    this.currentQuoteIndex = random;\r\n\r\n    return this.quotes[random];\r\n  };\r\n\r\n  quoteBrowser.prototype.setQuote = function(quoteObj) {\r\n    this.bindedElements.img.src = quoteObj.image;\r\n    this.bindedElements.quote.innerHTML = quoteObj.quote;\r\n    this.bindedElements.author.innerHTML = quoteObj.author;\r\n    this.bindedElements.likes.innerHTML = quoteObj.likes;\r\n    \r\n    var heartDiv = document.getElementsByClassName(\"heart\")[0];\r\n\r\n    heartDiv.classList.remove(\"liked\");\r\n\r\n    if (quoteObj.has_liked) heartDiv.classList.add(\"liked\");\r\n  };\r\n\r\n  document.addEventListener(\"DOMContentLoaded\", function() {\r\n\r\n    var qb = new quoteBrowser(data, options);\r\n    var randomQuote = qb.getRandomQuote();\r\n\r\n    qb.setQuote(randomQuote);\r\n    qb.init();\r\n  }, false);\r\n\r\n})();<\/pre>\n<p>That&#8217;s It. Now you have successfully created J<strong>avaScript Quote Slider With Controls<\/strong> and Like Button, <strong>CSS JS Slides<\/strong>. If you have any doubt or questions comment down below.<\/p>\n<p><span style=\"font-family: impact, sans-serif;\">Thanks For Visiting, Keep Visiting.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How we can create a quote slider with lines, author name, and author&#8217;s image using HTML CSS JS? Solution: See this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Previously I have shared testimonial slider, it like a little similar to that but it is a quote slider. Basically quote slider contains [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[43,42,46],"tags":[283,190,219,61,447,448,192,281,67],"class_list":["post-4329","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-html","category-javascript","tag-carousel","tag-example-and-source-code","tag-image","tag-javascript-tips-and-tricks","tag-quote-slider","tag-quotes","tag-responsive","tag-slider","tag-source-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Quote Slider With Controls and Like Button | CSS JS Slides<\/title>\n<meta name=\"description\" content=\"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get 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:\/\/webdevtrick.com\/javascript-quote-slider\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides\" \/>\n<meta property=\"og:description\" content=\"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Dev Trick\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webdevtrick\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-26T04:22:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"shaan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"shaan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\"},\"author\":{\"name\":\"shaan\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\"},\"headline\":\"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides\",\"datePublished\":\"2019-11-26T04:22:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\"},\"wordCount\":657,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg\",\"keywords\":[\"carousel\",\"example and source code\",\"image\",\"javascript tips and tricks\",\"quote slider\",\"quotes\",\"responsive\",\"slider\",\"source code\"],\"articleSection\":[\"CSS\",\"HTML\",\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\",\"url\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\",\"name\":\"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg\",\"datePublished\":\"2019-11-26T04:22:09+00:00\",\"description\":\"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webdevtrick.com\/javascript-quote-slider\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg\",\"width\":1200,\"height\":630,\"caption\":\"javascript quote slider\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webdevtrick.com\/javascript-quote-slider\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webdevtrick.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webdevtrick.com\/#website\",\"url\":\"https:\/\/webdevtrick.com\/\",\"name\":\"Web Dev Trick\",\"description\":\"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial\",\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webdevtrick.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webdevtrick.com\/#organization\",\"name\":\"Web Dev Trick\",\"url\":\"https:\/\/webdevtrick.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"width\":512,\"height\":512,\"caption\":\"Web Dev Trick\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webdevtrick\/\",\"https:\/\/pinterest.com\/webdevtrick\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\",\"name\":\"shaan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"caption\":\"shaan\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides","description":"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get 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:\/\/webdevtrick.com\/javascript-quote-slider\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides","og_description":"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get source code.","og_url":"https:\/\/webdevtrick.com\/javascript-quote-slider\/","og_site_name":"Web Dev Trick","article_publisher":"https:\/\/www.facebook.com\/webdevtrick\/","article_published_time":"2019-11-26T04:22:09+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg","type":"image\/jpeg"}],"author":"shaan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"shaan","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#article","isPartOf":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/"},"author":{"name":"shaan","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3"},"headline":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides","datePublished":"2019-11-26T04:22:09+00:00","mainEntityOfPage":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/"},"wordCount":657,"commentCount":0,"publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"image":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg","keywords":["carousel","example and source code","image","javascript tips and tricks","quote slider","quotes","responsive","slider","source code"],"articleSection":["CSS","HTML","JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdevtrick.com\/javascript-quote-slider\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/","url":"https:\/\/webdevtrick.com\/javascript-quote-slider\/","name":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides","isPartOf":{"@id":"https:\/\/webdevtrick.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage"},"image":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg","datePublished":"2019-11-26T04:22:09+00:00","description":"Want to create a slider for quotes or famous lines? Check out this JavaScript Quote Slider With Controls and Like Button, CSS JS Slides. Get source code.","breadcrumb":{"@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdevtrick.com\/javascript-quote-slider\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#primaryimage","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/javascript-quote-slider.jpg","width":1200,"height":630,"caption":"javascript quote slider"},{"@type":"BreadcrumbList","@id":"https:\/\/webdevtrick.com\/javascript-quote-slider\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdevtrick.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript Quote Slider With Controls and Like Button | CSS JS Slides"}]},{"@type":"WebSite","@id":"https:\/\/webdevtrick.com\/#website","url":"https:\/\/webdevtrick.com\/","name":"Web Dev Trick","description":"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial","publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdevtrick.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdevtrick.com\/#organization","name":"Web Dev Trick","url":"https:\/\/webdevtrick.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","width":512,"height":512,"caption":"Web Dev Trick"},"image":{"@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webdevtrick\/","https:\/\/pinterest.com\/webdevtrick\/"]},{"@type":"Person","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3","name":"shaan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","caption":"shaan"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/4329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/comments?post=4329"}],"version-history":[{"count":11,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/4329\/revisions"}],"predecessor-version":[{"id":4342,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/4329\/revisions\/4342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media\/4331"}],"wp:attachment":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media?parent=4329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/categories?post=4329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/tags?post=4329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}