Git Product home page Git Product logo

vue-tinybox's People

Contributors

joaquimley avatar kytta avatar zh4rsiest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-tinybox's Issues

Close (maybe others) event(s)

Is your feature request related to a problem?
It would be great to have an event propagated when the component is closed

Describe the solution you'd like
Emit an event

Additional context
The reason behind this is my need to wrap the component into another component, where the index is passed down as prop. This prevents leaking the library to the whole codebase. But this issue I get with this is the mutation of the prop directly, I'm fine with this as long I was able to set that prop to null again (on the parent).

Enable v-model support

If the index is submitted via a prop and updated via an event, why not combine it into v-model?

Component import does not work in Nuxt.js

Even though the output file clearly says export default Tinybox;, Nuxt keeps telling me stuff like export 'default' (imported as 'Tinybox') was not found in 'vue-tinybox'.

The component itself doesn't really work properly in an SSR-environment; gotta look into it.

Figure out CSS prefixing

Right now the CSS remains unprefixed. I tried to use PostCSS and Autoprefixer by including the plugins inside postcssPlugins option of rollup-plugin-vue, but wasn't successful

Rename component

While I do not expect W3C to introduce a <tinybox> HTML element, it's still bad practice to use single-word component names.

Ideas include:

  • TinyBox (not my favourite, as I kinda image Tinybox as a single word)
  • TinyboxGallery
  • TinyboxDisplay

Also some ideas by ChatGPT:

  • TinyboxPopup
  • TinyboxModal
  • TinyboxLightbox
  • TinyboxOverlay
  • TinyboxDialog
  • TinyboxWindow
  • TinyboxContainer

Images flashing on navigation

When navigating the images in the lightbox and the next/previous image is not cached, the previous image is being flashed.

Lazy load

First, Thank you for this tiny little gallery - very simple and useful.
Unfortunately didn't find any lazy load features.

It would be nice to:

  • add some loader while image is loading
  • add some error stub if image can't be load

Support Vue.js 3

Hi,
thank you for your great plugin. However we're approaching the point where the vue 2 have to be replaced with vue 3. Is there any chance for vue 3 support?

Best,
Robert

Update docs page

The docs page should:

  • show the implementation guide
  • look nicer

Thumbnails aspect ratio

When the thumbnail is not provided, the picture itself is being used. However, if it's not square, it gets resized without preserving the aspect ratio.

Bug in action (observe middle image)

Clean CSS styles

Being heavily inspired by webflow's lightbox, the component has too many styles that are possibly not needed

Broken animation

On the develop branch after all optimization, the animation of image switching is broken. The backdrop image matches the image that the lightbox is being changed to and the animation is always being played from the left side.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.