Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Ability to make a gallery mixing videos images and iframes... #33

Open
SuperPat45 opened this issue Jan 29, 2020 · 4 comments

Comments

@SuperPat45
Copy link

SuperPat45 commented Jan 29, 2020

A very nice feature will be the ability to make a gallery mixing various media type (videos, images, pdf and iframes) like Google drive

Something like:

var items= [];
items.push({
	vidSrc: 'https://yourvideo.mp4',
	caption: 'video caption'
});
items.push({
	ytSrc: 'z_PeaHVcohg',
});
items.push({
	vimeoSrc: '119287310',
});
items.push({
	iframeSrc: 'https://youriframe/my-file.pdf',
});
items.push({
	audio: 'https://youraudio.mp3',
	caption: 'audio caption'
});
items.push({
	imgSrc: 'https://yourimage.jpg',
	caption: 'image caption'
})


BigPicture({
	el: e.target,
	gallery: items,
	// optionally specify a starting index
	position: 2,
})
@SuperPat45 SuperPat45 changed the title Feature request; Ability to make a gallery mixing videos image and iframe Feature request: Ability to make a gallery mixing videos images and iframes... Jan 30, 2020
@k206i
Copy link

k206i commented Jul 14, 2020

That would be great, if that were possible.

@sayontan
Copy link

Any plans of incorporating this?

@henrygd
Copy link
Owner

henrygd commented Apr 11, 2022

No plans to incorporate this in the near future.

But if you're interested, I'm working on a more feature-rich alternative to this library which does allow you to mix media types in a gallery. Also has zooming, responsive images, html modals, better accessibility options, etc. And if you use Svelte, it's an even smaller hit to your bundle size.

Maybe a couple weeks from v1. Need to get some feedback and test on more devices.

https://biggerpicture.henrygd.me/

https://github.com/henrygd/bigger-picture

preview.mp4

@sayontan
Copy link

Looks really nice - I will keep an eye out for v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants