Skip to content

Delermando/quotes.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published