Ks89 / angular-modal-gallery

Modal image gallery for Angular
https://ks89.github.io/angular-modal-gallery-2024-v12.github.io/
MIT License
146 stars 80 forks source link
angular angular-cli angular12 aot carousel flex gallery gesture ivy modal popup ssr swipe touch universal


@ks89/angular-modal-gallery

@ks89/angular-modal-gallery

@ks89/angular-modal-gallery is an Angular library (SSR compatible) to create image galleries.


Despite its name, this library is more than for modal galleries, because I'm introducing new features every major release. In fact, It's composed by 3 main parts:

@ks89/angular-modal-gallery supports also keyboard shortcuts, swipe gestures and mouse events.


npm@latest npm@beta npm@next

Downloads/week Downloads/month Downloads/year

Github Actions CI result

Known Vulnerabilities david-dm Dependencies FOSSA Status code style: prettier

Coveralls Coverage

AngularStyleGuide

Donate NPMLicense Semver

Do you like @ks89/angular-modal-gallery? Please, add a :star: to support this library


Table of Contents

  1. Main parts
  2. Features
  3. Installation
  4. OFFICIAL DOCUMENTATION
  5. Choose the version
  6. News
  7. FAQS
  8. Contributing
  9. A big 'thank you' to
  10. License


:rocket: Main parts :rocket:

Carousel

Carousel full width

Carousel fixed width

Modal Gallery

Modal gallery

Modal gallery with buttons

Plain Gallery

Plain gallery row

Plain gallery column     Plain gallery grid


:boom: Features :boom:


:package: Installation :package:

From version @ks89/angular-modal-gallery >= 5.0.0, font-awesome isn't a mandatory dependency. You can use all default features without font-awesome. For more info, check official documentation website. From version @ks89/angular-modal-gallery >= 11.0.0, mousetrap and hammerjs have been removed as dependencies.


:book: Documentation :book:

Image loading could be slow, because this website is hosted on Github pages

OFFICIAL DOCUMENTATION WEBSITE


:warning: Choose the right version :warning:

@ks89/angular-modal-gallery font-awesome
AngularJS NOT SUPPORTED
Angular 2 = 3.3.5 >= 4.0.0
Angular 4 = 5.7.1 optional
Angular 5 = 6.3.0 optional
Angular 6 = 7.2.7 optional
Angular 7 = 7.2.7 optional
Angular 8 = 7.2.7 optional
Angular 9 = 7.2.7 optional
Angular 10 = 7.2.7 optional
Angular 11 = 7.2.7 optional
Angular 12 = 8.0.1 optional
Angular 13 = 9.1.0 optional
Angular 14 = 9.1.0 optional
Angular 15 = 10.0.1 optional
Angular 16 = 11.1.1 optional
Angular 17 = 11.1.1 optional
Angular 18 >= 12.0.0 optional


:fire: News :fire:

More than 100 releases in two years, and more to come... :)


:question: FAQS :question:

  1. Question: How can I remove images using DELETE button without issues?
    Answer: You cannot change the input image array. Instead, you should reassign it with a newer array without the deleted element. In other words, you must think in a functional way, without changing the input array of images. For more information check this official demo HERE.


:computer: Contributing :computer:

Check CONTRIBUTING.md in this repository. To understand how to contribute to an open source project, HERE you can find useful information.

When you create a pull request, please, format your code to be consistent with the existing code. I suggest to use WebStorm as IDE and when you commit don't use a third party software, but the official command line git. In this way, prettier will run using my configuration, and it will auto-format the code. If it fails, add files with git add . again and retry.


:sparkling_heart: A big thank you to :sparkling_heart:

all authors of icons used in this library:
all authors of spinners used in this library:


:copyright: License :copyright:

The MIT License (MIT)

Copyright (c) 2017-2024 Stefano Cappa (Ks89)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


If you like my projects you can do a free donation here Donate

FOSSA report

FOSSA Status


Created by Stefano Cappa

⬆ back to top