Comments (6)
I'm impressed! Thanks for the quick turnaround.
The captions work great. The points you mentioned tested well in Safari, Chrome, Firefox and iOS Safari (single touch hides the caption and buttons, zooming works on mobile).
There is a slight difference in how the captions line up with the bottom of the image depending on whether the iOS Safari bottom bar is showing (see the following screenshots). Not sure if that's fixable:
An option to position the caption directly below the image (instead of at the bottom of the screen) would also be lovely, but it also works great without it.
Thanks again!
from halkabox.js.
@manouman yes you can add alt
or title
attributes but the script as of yet wont change it into caption in the lightbox overlay. but the alt
and title
attributes will be applied nonetheless according to the browser implemented specifications.
from halkabox.js.
Would love to see this caption feature added. Adding visible image credits to the lightbox is necessary for most of my projects.
from halkabox.js.
Thank you for your input. I have added the caption feature. Please visit the following link and test it and share your feedback. Thank you.
https://ahmednooor.github.io/halkaBox.js/testing
p.s. single touch will hide the caption and buttons. please test that too. and please see if browser based zooming works (pinching in and out) on mobile. thank you.
from halkabox.js.
@ooloth thanks a lot for the detailed test. the caption is position fixed to the bottom and have a semi opaque background that is why when the bottom bar of the safari appears, the screen height shortens and hence the caption moves over the image. Regarding "An option to position the caption directly below the image (instead of at the bottom of the screen)", if that is done then the height of the image will decrease relative to the height of the caption and i haven't added a custom zooming functionality that can work on desktop, yet. so this is not a viable option.
Once again thanks a lot for your input.
from halkabox.js.
Features added in version 1.0.0
https://github.com/ahmednooor/halkaBox.js/releases/tag/1.0.0
from halkabox.js.
Related Issues (19)
- Browser scrollbar HOT 2
- Screen width switch bug HOT 4
- Option for Image List HOT 4
- Some callback for onChange HOT 1
- autoplay HOT 3
- List of galleries HOT 2
- Crossdomain
- Can't use as a module HOT 4
- box-shadow HOT 2
- [Feature Request] Add option to destroy instance HOT 5
- light-grey control buttons when resizing window, using dark theme HOT 6
- Gesture to close on touch devices HOT 5
- wheelhandler is too sensitive on desktop HOT 4
- Use html5 data-title instead of native title attribute HOT 3
- Double click/tap to zoom in/out HOT 5
- cursor-issue zoom HOT 1
- Transparent PNG HOT 2
- Create gallery items via JSON array HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from halkabox.js.