Show HN: Releasing my first real open source project – Captionss
captionss.com
captionss.com
EDIT: Sorry, not to denigrate your hard work, but I was burned early in my career by trying to use too many labor saving plugins. Later, I learned how to code correctly. I found that I could accomplish in 30 lines of js and 10 lines of css what I had previously downloaded a 500 line plugin for. I wondered why people found it necessary to build such bloated plugins, and realized that it probably stems from a desire to make a 'real, full-featured project'.
I am aiming to build a clean, consistent solution that can be grabbed from bower more quickly than finding similar lines of code in a blog.
Furthermore, I found it to be non-trivial to come up with a solution that didn't require specifying a predetermined image width. I hope captionss saves people that trouble as well.
* what the hell is stylus? your favorite tool isn't necessarily ubiquitous.
* it can serve as a learning tool for others. open source, remember? learning, and stuff.
* it could serve as a starting point for a minimal/stripped down version someone hacks away from.
* not everyone cares about 40 vs. 500 lines. some just want a cool and clean effect for a small audience, perhaps a small gallery site for a pro wedding photographer doing her/his own site.
* sorry, not everyone is as awesome as you are at coding. please bear with us while this guy releases hard work for free.
This is my first legitimate open-source project, I would really appreciate any feedback and suggestions related to the project as well as the landing page (captionss.com).
Can there be addition where there is one more mode where there is a small icon lets say 'i' at the a specific location (left top, right top, left bottom, right bottom) which when clicked/hovered on brings up the caption or a detailed write up panel?
Maybe the figure element is so rare that this doesn't matter, but that is making some sort of an assumption.
Apart from that this looks great, and I could definitely see myself using this in a project I'm working on!
Oh, sorry... one other thing. I just noticed in the README you redirect people to the website for documentation. It's fine to link to the website of course, but I'd recommend putting at least some usage examples in the README itself so people landing there get some idea of what the project is about without having to navigate away (which might turn some people off).
I especially appreciate the prefix idea. I was thinking something like that might be needed.
Btw don't listen to the Nay-sayers. I am a programmer but my css sucks and i for one find this very very helpful.
I'm not saying this is inaccessible - it looks like it would be okay at least as far as screen readers are concerned, though there may be color contrast issues depending on the image (here's an idea for a cool project - analyze the image and set a color on the caption that meets WCAG AA contrast ratios). It's just every time I see a some cool new css/js wizardry, the only way I can find out whether there's any accessibility compliance is to poke through the rendered markup, test out hover states, etc.
How does this support touch devices? Do they have to tap on the picture to see the caption, or does it show up automatically? I could see that being an issue if clicking on the image also brings up a full-size version of the image.
For now, I'd recommend not using the overlay or reveal/reveal-smooth options if you are aiming for a mobile audience.
Do you think it would still be better to bump the alpha value up to 0.8 or so?
When using it I wouldn't want to have to manually pick a theme based on the pic, as it would probably be a database gallery - but a choice of themes is great to have.
figure figurecaption {
transition: all 0.4s;
transform: translateY(100%);
}
figure:hover figurecaption { transform: none; }
Will get you the effect you want.What would be really cool: slideshow of several images + captions.