jQery Plugin integrieren
Die JavaScript-Bibliothek jQuery stellt eigentlich nur Grundfunktionen bereit. Für speziellere Aufgaben gibt es Plugins, das heißt zusätzliche JavaScript-Dateien.
Für dieses Beispiel einer (lightbox) Galerie habe ich https://noelboss.github.io/featherlight/ausgewählt.
Eigene Konfiguration des jQuery Plugins
$('a.gallery').featherlightGallery({
previousIcon: '◀', /* Code that is used as previous icon */
nextIcon: '▶', /* Code that is used as next icon */
galleryFadeIn: 100, /* fadeIn speed when slide is loaded */
galleryFadeOut: 300 /* fadeOut speed before slide is loaded */
});