How to do hover-- highlighted frame & drop shadow effect like thumbs at top of DGrin?
WinsomeWorks
Registered Users Posts: 1,935 Major grins
Wondering if anyone knows how to get the effect seen at top of DGrin (the 4 thumbnails) in either a gallery (SmugMug style as well as Collage style) or a folder? The effect is that hovering produces a thin highlighted frame around the image, but drop shadow is always there. The ones above have drop shadow on 4 sides. Perhaps 2 or 3 sides would be better, but either way...
I would need to then take out my code that's causing images to go a little dark when hovered. I think the above look is more attraactive. Just managed to get a drop shadow & border on my homepage slideshow thanks to Hikin' Mike's customization, but this is a bit different.
I would need to then take out my code that's causing images to go a little dark when hovered. I think the above look is more attraactive. Just managed to get a drop shadow & border on my homepage slideshow thanks to Hikin' Mike's customization, but this is a bit different.
Anna Lisa Yoder's Images - http://winsomeworks.com ... Handmade Photo Notecards: http://winsomeworks.etsy.com ... Framed/Matted work: http://anna-lisa-yoder.artistwebsites.com/galleries.html ... Scribbles: http://winsomeworks.blogspot.com
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
0
Comments
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Yes. I forgot what colors D-Grin used when I posted this. I didn't add the drop shadow, but you can add that to this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Yes. The colors I picked are random colors. Use what ever colors you want.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Ok, that's what I thought. I thought I was choosing something visible, but I can't really see the shadow on any of my pages. Maybe I'll have to try something even lighter... or darker... idk. Anyway, I love the white border-- I think it really sets off the thumbs nicely. The only place I saw a problem with it is when I saw the effect in a gallery that's set to "SmugMug Style" and has original thumbs. The white border stays square, & brings in some black to fill in the edges of the short side out to the square. Is there a way to make the white border cling to the actual edges of the original thumbs instead? I have some of both types of galleries on my site (or I did...in Legacy... trying to get some of them back now, as they all defaulted to a site-wide "Collage" style kinda by accident).
I also had some journal-style galleries which have disappeared. I just tried setting one back to "journal" & was happy to see even that one keeps the white borders-- excellent!!
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Do you have a link showing the 'Smugmug Style Gallery'?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Add this instead.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
Add this instead:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
....and use this. I HOPE this works better.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Anyway, here's where it's not as we planned, but I also don't mind if it needs to stay as is: In a collage-style gallery like this: http://www.winsomeworks.com/Arts-and-Crafts/Streets-and-Signs/Signs-of-the-Times/ , the thin frame is at least there; it just doesn't light up white when hovered. Same with this one: http://www.winsomeworks.com/Travel/Around-Asia/Asia-Unforgettable-Scenes/ Maybe that's because I have collage galleries set to show captions when hovered? (Whereas, in the Top Folder & Sub-folder displays where the hover is producing the correct white frame effect, I have it set to show titles of those folders or galleries all the time instead,) I just realized these effects could be confusing eachother? That's not a huge deal, either, cuz at least there's already one action going on when hovered.
**The view for SmugMug-Style galleries with original thumbs is the main one that needs fixing, like this one: http://www.winsomeworks.com/Nature/Seascape-Favorites/ As you can see, the frame is lighting up nicely white when hovered, but there's a 2nd frame around the original shape as well as a square shape at all times, & the space in-between the 2 frames is filling in with black. Actually, the whole image is also getting slightly lighter (less saturated) when hovered as well, which we didn't talk about inside galleries, but it really looks fine in a SmugMug style gallery, I'd say. That doesn't need fixing.
The view for SmugMug-Style galleries with square thumbs like this one http://www.winsomeworks.com/Art/Cascade-of-Colors/Golden-Glitters/ is very good. White frame lights up when hovered. As in the above gallery with orig thumbs, the image itself turns lighter on hovering as well, but again, I think that's fine in a gallery. Sorry so lengthy. Hope I've explained it OK. No rush, either...I have to be off my feet this week, so I'm in slo-mo. Wish I were photographing fall leaves-- hope the colors hang in there for a few.
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
That should take care of it.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Also if I change a gallery to display as Thumbnails style or Portrait-style Collage (which I'll be doing with some in near future) the thumbs lose the effect as well. I think Journal-style actually inherited the frame effect before, but doesn't now. That's not a concern though; it's OK as is. The frame looked good, but we wouldn't want journal-style to go transparent.
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com
You keep longer hours than me....!
I forgot about the folders, so just add this in red:
Yes, if you change to a different gallery style, we'll need to add more CSS.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
It's marvelous, Mike-- You're a wizard! Thank you SO much! I really love how that effect sets everything off. I'm all about color, as you can see. You know, I replaced the shadow color again with an even lighter tint, and thought I still wasn't seeing it. But then realized that the shadow is simply fewer pixels than what I see here on DGrin & that's why I wasn't seeing it much, so I may just try 2px instead or something, and/or 3px on just the larger folder tiles. I'm not sure if it'll be good anyway with my darker bkgrd. We'll see. That part, I think I can tinker with on my own, as I basically get what most of the lines of code are doing.
I know in some of my displays, there's not room in-between images for much (shadow or anything). I'm planning to increase the space (margin) between the images & then there will be, but was hoping to find a way to do that for an entire folder rather than going into every single folder & sub-folder to change it.. yikes, otherwise it'll be a big task. Not every folder has the same size display images (I tried to use the largest I could depending how many sub-folders or galleries had to display) so idk if that makes it hard to change the margins in bulk, like in a whole Top-folder or Sub-folder.
Yes, all of my gazillions of galleries were re-set to Collage style in NewSmug, so I need to get around & change lots of them to Smug style or another one. Portrait collage for some folders is definitely one I'll use, but it'll be a few days probably 'til I get to it. As to my hours-- umm, yes, a musician-friend of mine wrote a song with the refrain, "I'm just an East Coast woman... livin' in West Coast time"!! Describes me to a T. Idk why I don't have more owl shots. Ok, time to get outside & see some fall color before it blows away!
DayBreak, my Folk Music Group (some free mp3s!) http://daybreakfolk.com