quotesjs

1.0.2 • Public • Published

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> 

Readme

Keywords

Package Sidebar

Install

npm i quotesjs

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ceasbz
  • cauealves