An application that that allows you to search for free stock photos online, using an API (using js async-await)
๐ Live demo
The app is coded with vanilla Javascript. It uses the Pexels API and AJAX technology.
This web application allows you to find royalty-free images from simple keywords. It includes:
- A complete and simple gallery customization system from the Gallery object signature (see video or code on Github): number of columns, thumbnail height, overlay style on mouseover, etc.
- an infinite loading button at the bottom of the page
- a loading spinner
Example of new Gallery object signature:
new Gallery( {
auth: "PEXELS_API_KEY",
perPage: 12,
gap: '40px',
searchPlaceholder: true,
showMoreCount: true,
photo: {
minWidth: '300px',
height: '600px',
overlayStyle: 3,
overlayColor: 'average',
overlayOpacity: 0.95,
animation: 'circleSmall',
animationDuration: 0.3
}
})