javascript - Fancybox 3: Setting different cursors for left & right side of the slider -
i have set fancybox 3 plugin (http://fancyapps.com/fancybox/3/) website , customising appearance. have changed css of arrows user can use slide next/previous image area clickable slide next image covers 49% of screen left , right, i.e. user can click either on left or right side of each image slide next.
now set custom cursors each side of slider well; right side should show right pointing arrow, left side left pointing arrow. current issue cannot set cursor either side of slider, clickable area in general. how can distinguish these 2 , set different slider each?
here's part of jquery.fancybox.css have changed .gif showing current version of in action (i have coloured clickable area green in order make more apparent):
/* navigation arrows */ .fancybox-arrow { position: absolute; top: 0; margin: 0 0 0 0; height: 100%; width: 49%; padding: 0; border: 0; outline: none; background: none; background-color: rgba(137, 255, 139, 0.4); cursor: pointer; z-index: 99995; opacity: 1; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; transition: opacity .25s; } .fancybox-arrow:hover { cursor: -webkit-image-set(url(cursor-right.png) 1x, url(cursor-rightx2.png) 2x), pointer; } in .gif can see cursor changing right pointing arrow, applied both sides of slider.
please check left , right css classes arrows fancybox has. try using them e.g. .fancybox-arrow--left {your css here }. has --right well.
hope helps. happy coding.

Comments
Post a Comment