- Via
npm
npm install quotesjs
- Via Download
<script type="text/javascript" src="js/quotes.min.js" async="async"></script>
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>