-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 to config left and right arrow #624
Comments
Unsupported. |
Hi, If it's not too late. You'll need the 'https://fontawesome.com/' library that I used for the arrows. But there may be other possibilities in CSS. in 'viewer = new Viewer(imagesviewer[0], { var gallery = $("#gallery img");
var viewer_arrows = '<div id="viewer-arrows" class="hidden">' +
'<a id="viewer-prev" class="fas fa-chevron-left" onclick="viewer.prev(loop=1);"></a>' +
'<a id="viewer-next" class="fas fa-chevron-right" onclick="viewer.next(loop=1);"></a>' +
'</div>';
$('.viewer-footer').append(viewer_arrows);
if (gallery.length > 1) $("#viewer-arrows").removeClass("hidden"); css #viewer-prev, #viewer-next {
position: absolute;
z-index: 2020;
font-size: 60px;
bottom: 52px;
color: rgba(0, 0, 0, 0.6);
cursor: pointer;
-webkit-text-stroke-width: 1.5px;
-webkit-text-stroke-color: white;
}
#viewer-prev {
left: 2px;
}
#viewer-next {
right: 2px;
}
#viewer-prev:hover, #viewer-next:hover {
color: white;
-webkit-text-stroke-color: black;
} That's one aspect of the rendering. If it helps anyone. Xav |
prev and next button in the bottom toolbar is not convenient, look forward to have left and right arrow. |
my solution:
css:
|
how to config left and right arrow like the image example
The text was updated successfully, but these errors were encountered: