Project List + Project Thumbnail on Link Hover
-
Hello —
I would like to display the projects as a list where the project thumbnails appear on mouseover. I know this is something that has been brought up in the forums in the past.
http://laythemeforum.com/topic/826/hovering-over-text-showing-thumbnail
Any tips on where to start?
Thanks! -
you totally need advanced skills with jQuery to do this.
It is possible but like Armin already said – not easy to achieve.
Roughly:
- You need to get the class of the image.
- Then you position it with position fixed
- Then you hide it
- Then you need to write a jQuery which adds a class to it when you hover the title of the project
You will need to work with each loops.
If you are further with it – let me know and I might help in with the details.
Best!
Marius
-
Yes - Please. I saw an example you provided a user somewhere in the forum. I'm definitely up to the task.
Thanks! -
you totally need advanced skills with jQuery to do this.
It is possible but like Armin already said – not easy to achieve.
Roughly:
- You need to get the class of the image.
- Then you position it with position fixed
- Then you hide it
- Then you need to write a jQuery which adds a class to it when you hover the title of the project
You will need to work with each loops.
If you are further with it – let me know and I might help in with the details.
Best!
Marius
@mariusjopen Hi Marius, I am trying to achieve almost the exact same thing explained and got stuck just before the finish line I guess..
Made a project thumbnail in Gridder and classified .projectlinks. Hid the image with CSS and want them to appear behind the Text from Thumbnail. Made a class .active + mouseenter.
Any idea what I am mixing up? Hiding the thumbnail images on the page works totally fine, but they just won't appear hovering them. (btw. getting no error in inspector console). Any help I is a lot appreciated!CUSTOM CSS
.col[data-type="text"] img {
position: absolute;
z-index: -1;
display:none;
}
.active {
display: block!important;
}CUSTOM <HEAD> CONTENT
<script>
jQuery(function($) {
$('a.projectlink').on('mouseenter', function(event){
$(this).addClass("active");
});
});</script>
-
hey everybody,
im thinking about doing a plugin that does this one day
im sorry for not helping you how to do this in a custom way, i got too many other things to do
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login