putrantos
04-16-2014, 03:16 PM
Hi, I need help on Ultimate Fade-in slideshow (v2.4).
I tried to put my own "peekaboo" div, in a front layer, showing left to right.
MY CSS:
#info2 {
display:inline-block;
width:auto;
margin-top:200px;
text-align:left;
padding:20px;
font-size:28px;
color:#FFFFFF;
font-family: "DinProRegWeb", Arial, Helvetica, sans-serif;
text-shadow: #666666 0.1em 0.1em 0.2em;
font-weight:bold;
background: rgba(0,0,0,0.2);
visibility:hidden;
}
MY JAVASCRIPT:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [960, 360], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: fadeimages001,
displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
descreveal: "none",
togglerid: "",
onslide:function(curimage, index){
jQuery('#info2').css('visibility', 'visible')
var imagearray=this.setting.imagearray
var effect = 'slide'
var options = { direction: 'left' }
var duration = 700
jQuery('#info2').html(imagearray[index][3]).hide().show(effect, options, duration)
}
})
THE SCRIPT WORKS OK, shows the next (new) image descriptions triggered by onslide, AFTER the new images is displayed.
QUESTION:
I want to hide the "current image description" (div) BEFORE skipping to the next image.
Thank you,
TNT
http://infiniti-adventures.com/ufissforum/ufiss.jpg
I tried to put my own "peekaboo" div, in a front layer, showing left to right.
MY CSS:
#info2 {
display:inline-block;
width:auto;
margin-top:200px;
text-align:left;
padding:20px;
font-size:28px;
color:#FFFFFF;
font-family: "DinProRegWeb", Arial, Helvetica, sans-serif;
text-shadow: #666666 0.1em 0.1em 0.2em;
font-weight:bold;
background: rgba(0,0,0,0.2);
visibility:hidden;
}
MY JAVASCRIPT:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [960, 360], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: fadeimages001,
displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "ondemand",
descreveal: "none",
togglerid: "",
onslide:function(curimage, index){
jQuery('#info2').css('visibility', 'visible')
var imagearray=this.setting.imagearray
var effect = 'slide'
var options = { direction: 'left' }
var duration = 700
jQuery('#info2').html(imagearray[index][3]).hide().show(effect, options, duration)
}
})
THE SCRIPT WORKS OK, shows the next (new) image descriptions triggered by onslide, AFTER the new images is displayed.
QUESTION:
I want to hide the "current image description" (div) BEFORE skipping to the next image.
Thank you,
TNT
http://infiniti-adventures.com/ufissforum/ufiss.jpg