Skip to content

Latest commit

 

History

History
62 lines (31 loc) · 1.23 KB

README.md

File metadata and controls

62 lines (31 loc) · 1.23 KB

RandomUserWall

A jQuery Plugin to build a wall of random user faces.

Demo on CodePen


Getting Started

Requirements

jQuery

  • Include jQuery
  • Include jquery.randomuserwall.js
  • Call RandomUserWall on a target object
$('.target').randomUserWall({ numFaces: 24 });

Options

numFaces (required, int) Defines how many faces will be generated

gender (optional, string) Defines the gender of the returned set of faces. female will return all women, male will return all men, any other value will result in a mix.

imgSize (optional, string) Sets the size of the images returned. thumb will return thumbnail size (80x80), med will return medium size (150x150), any other value will return full size (512x512).


Thanks

Thanks to the guys over at RandomUser.me for their hard work, as well as Greg at the 1000 faces project for the awesome images.


Changelog

v1.0.0

Initial release.


Author

Mike Zarandona | @mikezarandona