Large companies usually show a grid of logos, however, the choice of the logos might be subject to discussion. This plugin will randomnly show many logos based on a grid (6, 9, 12, etc.). Only the first set of logos will be loaded on page load, the rest will be added in JavaScript to avoid any useless HTTP requests. Note that jQuery serialshuffle is shared for inspirational and development purpose.
See the project page for a demonstration.
jQuery serialshuffle has been tested in: IE, Edge, Chrome (mobile included), Firefox (mobile included), and Safari (mobile included).
Download and save one of two available files to include serialshuffle to your page, either the development or the minified version. Also, you can visit the project page to copy what you need.
<script src="jquery.serialshuffle.min.js"></script>
<link href="jquery.serialshuffle.css" rel="stylesheet">
Due to the lightweight CSS code, it's recommended to copy/paste the CSS code into your general stylesheet.
Make sure jQuery is properly loaded before using jQuery serialshuffle.
The basic usage of serialshuffle is pretty easy, just start using jQuery serialshuffle by calling it after page load.
<ul class="js-serialshuffle">
<li><img src="logo-amazon.svg" alt=""></li>
<li><img src="logo-cisco.svg" alt=""></li>
<li><img src="logo-cocacola.svg" alt=""></li>
<li><img src="logo-coinbase.svg" alt=""></li>
<li><img src="logo-facebook.svg" alt=""></li>
<li><img src="logo-fossil.svg" alt=""></li>
<li><img src="logo-google.svg" alt=""></li>
<li><img src="logo-huawei.svg" alt=""></li>
<li><img src="logo-oppo.svg" alt=""></li>
<li><img src="logo-sandisk.svg" alt=""></li>
<li><img src="logo-slack.svg" alt=""></li>
<li><img src="logo-sony.svg" alt=""></li>
</ul>
$(document).ready(function(){
// jquery.serialshuffle initialisation
$('.js-serialshuffle').serialshuffle({
folder: 'https://github.meunierkevin.com/assets/img/serialshuffle/',
shuffle: [
'logo-stripe.svg',
'logo-tmobile.svg',
'logo-toyota.svg',
'logo-uber.svg',
'logo-ups.svg',
'logo-vware.svg',
'logo-westerndigital.svg'
]
});
});
The following configurations is available by default:
Name | Type | Default | Description |
---|---|---|---|
folder | string | '' | The root folder for the images |
stack | string | '[]' | An array of additional images (Mandatory) |
speed | integer | '2000' | The delay between the displayed logo and the new one |
Please report bugs and feel free to ask for new features directly on GitHub.
jQuery serialshuffle is licensed under MIT license.