Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouseover/Hover Effect for Artifact Thumbnails #287

Closed
jonfroehlich opened this issue Dec 1, 2017 · 8 comments
Closed

Mouseover/Hover Effect for Artifact Thumbnails #287

jonfroehlich opened this issue Dec 1, 2017 · 8 comments
Assignees

Comments

@jonfroehlich
Copy link
Collaborator

jonfroehlich commented Dec 1, 2017

I quite like the following subtle hover effect that has become common on portfolio pages: you mouseover a thumbnail and it zooms the image (and sometimes does a slight darkening + text overlay).

See https://www.awwwards.com/websites/portfolio/ & vanschneider.com for demos of this effect.

Looks pretty easy to implement. My suggestion would be to have a css class like artifact-thumbnail-hover or something that can be used on any artifact thumbnail that we want like project thumbnails, talk thumbnails, paper thumbnails, etc.

@jonfroehlich
Copy link
Collaborator Author

I think this might be a good one for @lstearns86 to start with for Hackathon.

@lstearns86
Copy link
Collaborator

Here's an example of the new behavior:

image

You can add the class artifact-thumbnail-hover to any element that contains an image and it will zoom 20% on hover. I also added the artifact-overlay class which will add the dark overlay and the artifact-overlay-content class which sets the text and link color to white and positions it in the bottom left of the container.

@jonfroehlich
Copy link
Collaborator Author

Can you try:

  • Increasing the font size
  • Vertically and horizontally centering text
  • Consider putting white rectangle (with rounded corners) around each text (e.g., to convey button and clickability)

@lstearns86
Copy link
Collaborator

Updated overlay link styles:

image

Or if there are too many for a single line (also showing link hover behavior):

image

How's that? Also, I assume that I should remove the redundant links below?

@jonfroehlich
Copy link
Collaborator Author

  • More vertical and horizontal margin in each button
  • No need to have opacity in button. Just make mouseover opacity for whole thumbnail dark enough that it is easy to read button text. Can you find some examples of this style of mouseover online and post them into this thread?
  • What font are you using?

@lstearns86
Copy link
Collaborator

Do you mean the padding within the button (separating from the border)? Or the separation between the buttons?

I can keep looking, but I couldn't quickly find any examples that have the behavior you want. The link you provided initially is the closest I saw, with the arrow link in the bottom right.

I'm using the default font that we're using for text pretty much everywhere else.

@lstearns86
Copy link
Collaborator

How's this?

image

I increased the internal padding, got rid of the button background colors, and increased the overlay darkness to make the buttons more readable for light colored images.

jonfroehlich added a commit that referenced this issue Dec 18, 2017
@jonfroehlich
Copy link
Collaborator Author

Fixed in #325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants