Navigation - How to Create Hover Text: Go to larger view or Lightbox
toddbuchanan
Registered Users Posts: 60 Big grins
I have some clients who may not be as familiar with navigating a photo galllery to get to larger views: either getting to the larger thumbnail view in gallleries or from the larger view to the light box view (don't not necessarily want them going to the slide show since I want them to still see the tools at the bottom like the Lightbox has)...and for the sake of this post, lets just call these clients advanced in age or computer challenged....
So I was trying to figure out if I could either add a "Alt Text" or tooltip hover over the thumbnails and larger view (smugmug style gallery) that would be an Alt Text/tooltip on hover, or a hover tag that I could create that would say something like: "Click here to see larger view".
Either that or create a button below the larger view (in smugmug style gallery) that would say, "Click for larger view"
I have seen several hacks for right click notes, but my clients might not understand click on the image would make it larger (heck...it took me several days to realize you click on the larger preview to go to the light box!)
Below are a couple sample ideas:
Thanks
Todd
http://coroporteeventimages.smugmug.com
So I was trying to figure out if I could either add a "Alt Text" or tooltip hover over the thumbnails and larger view (smugmug style gallery) that would be an Alt Text/tooltip on hover, or a hover tag that I could create that would say something like: "Click here to see larger view".
Either that or create a button below the larger view (in smugmug style gallery) that would say, "Click for larger view"
I have seen several hacks for right click notes, but my clients might not understand click on the image would make it larger (heck...it took me several days to realize you click on the larger preview to go to the light box!)
Below are a couple sample ideas:
Thanks
Todd
http://coroporteeventimages.smugmug.com
0
Comments
This should get you started
.sm-user-ui .sm-gallery-image a:hover:after {
content: 'Click On Image To Enlarge ' !important;
z-index: 9999 !important;
position: relative;
bottom: 50px;
left: 10px;
background-color: whitesmoke;
color: red;
padding: 20px;
border-radius: 6px;
overflow: visible;
}
Cool! Thank you! I knew I was close but I was just a little bit of on the right code...
So the only thing I don't know as much about is the z-index numbers...if I wanted to position it in lower right, what would that z-index be?
And thank you again!
Corporate & Editorial Photojournalism
Corporate & Editorial Photojournalism
.sm-user-ui .sm-gallery-image a:hover:after {
content: 'Click Image To Enlarge ' !important;
z-index: 9999 !important;
position: relative;
bottom: 30px;
left: 10px;
background-color: rgba(0, 0, 0, 0.4);
color: #ffffff;
padding: 3px;
border-radius: 3px;
overflow: visible;
}
Thank you again....
Corporate & Editorial Photojournalism
I tried adding the class for the thumbs too but like you no luck..I'm assuming the position/size cause a problem...would be nice to have though....something simple like the small tools or download alt text...
Corporate & Editorial Photojournalism
Added code w/ the tweeks, but when it appears it's pushing the nav and comment box down.
seems to make it work better... but I'm not sure that's a good idea or not.
Sample Gallery: http://www.brandolinoimaging.com/Image-Galleries/Sports-Images/High-School-Softball/LWE-Freshmen-Softball-2011/i-rk47fnS
Sweet! Nice job...bonus points for styling it...I'm trying to see if I can find some sort of web kit transition that might work but I know just enought to be dangerous....
Corporate & Editorial Photojournalism
Had to add a bit... .sm-gallery to keep the effect on the smugmug style only...
If you want to add the text to a multiple image box in collage style change the 1st line to...
.sm-user-ui .sm-page-widget-images .sm-tile a:hover:after
and tweek to fit...
If using both w/ different styling you need to tweek 1st line for main image code also..
Note: I've modified the look slightly to fit my theme (smaller border, different colors, smaller padding , square corners, etc)
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations