Catalog npm
PACKAGE EXPLORERView in registry

1gallery

npm

a modern SEO friendly ejs web banner gallery for any kind of slides (photos, html...)

bannercarousselejsgalleryseoslideslidersplash
Versions collected8
Direct dependencies0From release 0.0.8
Last observed20 Oct, 18:28 UTC

README

Current package documentation

1gallery

Online Demo

Usage :

For examples, see demo source code.

Require node.js.

In your project root, in cli :

npm install --save-dev 1gallery ejs

In your ejs parsed files when you want insert a 1gallery :

<%
const galleryOptions = 'banner zoomable autoplay-5s'
const exampleCards = [];
exampleCards.push(`<section class="card cover"><h1><center>A full size card/slide</center></h1></section>`);
exampleCards.push(`<img class="card" src="img/1forma-tic-fond-ecran.png"/>`);
%>
<%- include('../PATH_TO/node_modules/1gallery/1gallery.ejs',{cards:exampleCards,classes:galleryOptions}); %>

<link rel="stylesheet" href="../PATH_TO/node_modules/1gallery/1gallery.css"/>
<script src="../PATH_TO/node_modules/1gallery/1gallery.js"></script>

You can use css class to customize 1gallery behavior on gallery scope or card scope.

  • zoomable : add fullscreen mode and related icon.

  • autoplay-[1-999]s : automatically go to next slide every [0-999] seconds

  • banner : banner style gallery (height : 150px)

  • splash : splash style gallery (height : 100vh)

PS : you can use css to override any default 1gallery css.

Card class :

  • card : required to let the gallery engine detect each card/slide
  • auto : default resize the card to match screen ratio.
  • cover : extend the card to the gallery size like css object-fit: cover;
  • ratio-[1-9999]-[1-9999] : force card ratio to [1-9999]/[1-9999]. Usefull for photo.

PS : you can use ratio and cover on the same card for some strange html slide use-case.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 8

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.8Registry latest15 Jan 20210
0.0.715 Jan 20210
0.0.69 Jan 20210
0.0.59 Jan 20210
0.0.49 Jan 20210
0.0.39 Jan 20210
0.0.29 Jan 20210
0.0.19 Jan 20210

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c2f3e14f56fdfbe879f611413ae057cc87b2f8bd7a4d88d4fd6e4309769f01f2