quotesjs

A simple way to include a list of quotes on your website

Usage no npm install needed!

<script type="module">
  import quotesjs from 'https://cdn.skypack.dev/quotesjs';
</script>

README

Build Status

Install

  • Via npm
npm install quotesjs
<script type="text/javascript" src="js/quotes.min.js" async="async"></script>

Usage

This code is a simple way that you can configure a list of quotes inside a selector specified.

<section>
    <div class="quotes"></div>
</section>

<script type="text/javascript">
  window.onload = function(){
    var quotes = [
      'You never lose a dream. It just incubates as a hobby.',
      'Design is not just what it looks like and feels like. Design is how it works.',
      'Innovation distinguishes between a leader and a follower.',
      'Have enough courage to trust love one more time and always one more time.'
    ];
    
    Quotes.start(quotes, {
      selector: '.quotes',
      listType: 'unordered',
      listClass: 'list-quotes',
      sleep: 6
    });
  };
</script>