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

How do you make the non-sliphover part of an image clickable? #30

Open
Azoruk opened this issue Jun 9, 2017 · 0 comments
Open

How do you make the non-sliphover part of an image clickable? #30

Azoruk opened this issue Jun 9, 2017 · 0 comments

Comments

@Azoruk
Copy link

Azoruk commented Jun 9, 2017

I'm using sliphover at 40% height, and the top 60% isn't clickable. I want the WHOLE image to be a link, not just the bottom 40%. How do I achieve this?

Scripts:

$(".profileImageContainer").sliphover({
	target: '.profileImg',
	height: '40%',
	withLink: true,
	caption: 'data-caption',
});

HTML/Blade:

  <div class='brick profileImageContainer' style="width:{{ $width }}px">
	<a href="{{ route('image.get', ['username' => $user->username, 'URLtitle' => $image->url_title]) }}">			
		<img src='{{ url($image->medium_path) }}' width='100%' class="profileImg" data-caption="
		test123
		">		
	</a>					
  </div>	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant