Angular Gallery, Carousel and Lightbox
See the storybook documentation
<gallery>
components can be used as string attributes
<gallery autoHeight>
, <gallery autoHeight="true">
and <gallery [autoHeight]="true">
sets the option's value to true.<gallery autoHeight="false">
and <gallery [autoHeight]="false">
sets the option's value to false.<gallery>
components can be used as string attributes
<gallery playerInterval="2000">
and <gallery [playerInterval]="2000">
sets the option's value to 2000Improved performance
ItemAutoSize, ThumbAutoSize features
itemAutoSize
option is now reactive.[thumbAutosize]
causes random invalid starting thumbnail scroller position when scrolling possible, closes #521
[ItemAutosize]
in website/safari browsers do not work as expected, closes #543
AutoHeight feature
Autoplay feature
autoplay
resets the timer after navigated.autoplay
only start the timer after the image is loaded.Bullets (previously named 'Dots')
disableBullets
disable bullets' clicksCustom template
galleryImage
directive within galleryItemDef
, to allow recognizing the img element in your custom item template.Core
slidingDirection
→ orientation
slidingEase
→ scrollEase
slidingDuration
→ scrollDuration
slidingDisabled
→ disableScroll
mouseSlidingDisabled
→ disableMouseScroll
autoPlay
→ autoplay
Thumbs
thumb
→ thumbs
thumbMode
→ thumbCentralized
thumbMode
→ thumbCentralized
thumbDetached
→ detachThumbs
thumbSlidingDisabled
→ disableThumbMouseScroll
thumbMouseSlidingDisabled
→ disableThumbMouseScroll
Bullets
dots
→ bullets
dotSize
→ bulletSize
dotPosition
→ bulletPosition
navScrollBehavior
the option is now removed, use scrollBehavior
instead.GalleryThumbDef
, GalleryImageDef
, GalleryItemDef
, GalleryBoxDef
to set custom templates.imageTemplate
property to GalleryConfig
.args
property in case need to attach extra data with the gallery item.itemTemplate
, thumbTemplate
and boxTemplate
has been removed from the gallery component, however they still exist in GalleryConfig
by @MurhafSousli in https://github.com/MurhafSousli/ngx-gallery/pull/565
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v10.0.0...v11.0.0
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v9.0.1...v10.0.0
bezier-easing
package from dependencies, closes #525 #551 in 6c47ecb.Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v9.0.0...v9.0.1
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v8.0.4...v9.0.0
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v8.0.2...v8.0.3
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v8.0.1...v8.0.2
Full Changelog: https://github.com/MurhafSousli/ngx-gallery/compare/v8.0.0...v8.0.1
isActive
to custom gallery template context, in 0b3f8bf.allow
attribute.itemLoaded
output.contentVisibilityAuto
option for version 8.autoHeight
option, when set to true, the gallery height will fit the active item height.autoItemSize
option, when set to true, the item will fit its image aspect ratio.autoThumbSize
option, when set to true, the thumb will fit its image aspect ratio.scrollBehavior
option.navScrollBehavior
option.thumbImageSize
option.configSnapshot
to GalleryRef
class.behavior
to all next(behavior?)
, prev(behavior?)
, set(index, behavior?)
functions, fallbacks to the scrollBehavior
config.itemTemplate
is provided.loading
attribute on all img
and iframe
for native lazy loading.lazy-image
directive.resizeDebounceTime
option which is used to update the gallery on window resize event in 34a2723 and d867630.slidingEase
and slidingDuration
to customize sliding ease and duration in 4c1db03.thumbDetached
to detach thumb slider, closes #289 in 1f47484.boxTemplate
to the gallery, closes #487 in f46e33a.slidingDisabled
and thumbSlidingDisabled
options to enable/disable sliding on Mobile and Desktop using the touchpad. in 2451581.mouseSlidingDisabled
and mouseThumbSlidingDisabled
options to enable/disable sliding on Desktop using the mouse. in 2451581.thumbView="contain"
Sliding thumbnails using gestures has an issue, closes #417 in e819ebe.thumbMode
option from the gallery, in 18f71e3
tapClick
event and use native click
event, in 3d960cc.ng-content
from the gallery, in 63e3b6b.panSensitivity
option, in d1f8d34.gestures
option, in 70cb00c.reserveGesturesAction
option, in 4b07fc7.zoomOut
option, in 19ba2b8.HammerJs is only used for sliding using the mouse on desktop only, Sliding on mobile devices is now native scroll.
gestures
option has been deprecated.thumbMode
option has been deprecated, sliding thumbnails is free.zoomOut
has been deprecated.reserveGesturesAction
has been deprecated.panSensitivity
has been deprecated.ng-content
from the gallery, use boxTemplate
option to add your custom layer.loadingStrategy
option has changed to LoadingStrategy.Preload
.bezier-easing
.