Giter Club home page Giter Club logo

halkabox.js's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

halkabox.js's Issues

Gesture to close on touch devices

A suggestion to perhaps have some sort of gesture based closure of the overlay on touch based devices?
A two finger Pinch to close or swipe up or both ?

Use html5 data-title instead of native title attribute

Hi
Can you configure the plugin to get captions from html5 data attribute.
Like data-title. Getting caption from native title attribute interferes with designs especially when we don't want the title to show on mouse hover.
thanks

Double click/tap to zoom in/out

A common pattern beyond pinch zoom in/out is often doubletap to zoom in/out like on FB or IG. Could you forsee a function for such a feature?

List of galleries

Is there way to show case a collection of gallery with one picture representing each gallery unlike in the demos where all pictures of the gallery are visible before the gallery is opened?

light-grey control buttons when resizing window, using dark theme

Hello.
I have another minor issue..

hbRightIconContainer.style.backgroundColor = "rgba(0, 0, 0, 0.6)";

These rgba values seem to work only when loading the halkaBox with small browser window.

When I view a photo with large browser window, and drag the window smaller, the buttons become light grey. When I then reload the page and open the photo again, the buttons are dark again.

I thought, maybe because of the surrounding if, but I'm not sure, because the colors are okay, and only become light-grey when I resize the browser window (drag it smaller).

Some callback for onChange

I want to integrate this in my project but we load the images dynamically on the go... If there is some way to pass a callback that fires when slides are changed, it will be very useful for us!

Transparent PNG

Hello, is there some way how to show white background under the transparent PNG img element with let say 20px padding?

I've tried ::before class on img, but it's not working. Then I've tried set background color on hb-image-div, but this div is 100% width.

Thanks

Your demo with PNG:

Snímek obrazovky 2019-11-14 v 13 13 30

Screen width switch bug

When trying the demo page it works fine on mobile until you switch between views. You have to refresh the page in order to being able to swipe again. This also happens when resizing the screen in responsive mode using your regular browser.

Can't use as a module

Hi,
I suggest adding exports to use this as a module in webpack, this could be really really useful
Thanks in advance,
Fabio

autoplay

autoplay option it's possible?

cursor-issue zoom

Hi!

Not a big issue, because many people will not notice, so you might change this or not. Priority: low.

On a Windows 10 pc, Firefox 67.0 and MS Edge whatever, I stumbled upon an issue with the lightbox, that was weird. Zooming with Ctrl-key and the mouse wheel, afterwards moving the mouse over the zoomed image, the ZOOM-cursor changed to the HAND-cursor, while hovering over (mouseover) the hidden control buttons.

I checked with the demo-site, to see if this was only my thing, because I had changed some of the code in the lightbox-js, but same there.

JS/CSS (original is made with CSS opacity:0 - opacity:"") I tried with display:"none", and display:"", worked for "grouped images" to solve the cursor-issue, but not for a standalone single image with the CSS-class "hb-single", showing me ALL the control-buttons now???

Finally I tried the CSS-property "visibility" instead of "opacity", that worked for me. CSS property "visibility": .mydiv{visibility:visible} or .mydiv{visibility:hidden}

I changed the CSS properties in the javascript, in the hideControls(), showControls() functions
They used to be: whatever.style.opacity=0; or whatever.style.opacity="";

function hideControls(){
hbRightIconContainer.style.visibility="hidden"; ... for right, left, close, and counter
controlsHidden=true;
}

function showControls(){
hbRightIconContainer.style.visibility=""; ... for right, left, close and counter
controlsHidden=false;
}

Note: Opacity 0 does NOT (always or automatically) disable all properties connected with it, that's tricky. A mix of CSS "display,opacity,visibility", or only one of those 3, might do the trick.
Anyway, thank you! for the great halkaBox-script, totally underrated in my opinion, should have minimum 500++ likes here on github.

sun4all
cursor_zoom
cursor_hand

Browser scrollbar

This is a very nice, well implemented lightbox. Kudos!
The only thing stopping me from using this is the disappearing/appearing scrollbar when you open the lightbox. Is this intentional? Could it maybe be optional?

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.