Nivo slider wont hide previous image - javascript

http://74.52.155.226/~projtest/team/harmeet/emed/
This is the link of the project i am working on. Now the slider i have used is nivo and the images in it will be png. I tried looking for an option into the js itself but i couldn't find any option. The issue is that when the next image loads, the previous image is still displayed whereas the behaviour should be that the previous image fades out and next image fades in. Any clues?

How about setting it to use the 'fade' style?
$('#slider').nivoSlider({
effect: 'fade'
});
Full usage details available on this page:
http://nivo.dev7studios.com/support/jquery-plugin-usage/

Related

Javascript image change with slider

I want to create something where an image can be changed by using a slider. However it's not your ordinary carousel. I want an image, in this case a wireframe, and if you slide the slider from right to left another image, the actual mockup, appears. See the image below for an more acurate description
i know how to create a slider with javascript but i'm not sure how i'm going to achieve this effect using this.
Some resources found on Google:
http://zurb.com/playground/twentytwenty
https://juxtapose.knightlab.com/
https://github.com/kavyasukumar/imgSlider
https://github.com/koenoe/cocoen
https://github.com/CodyHouse/image-comparison-slider
https://github.com/slamcode/cato.js
https://github.com/jotform/before-after.js

WP Metaslider onclick enlarge image same screen

so I'm using WP metaslider for a slideshow/gallery display. Everything works great with it, except instead of clicking on the image in the slider and opening its original size in a new window, I would prefer to click on the image in the slider and it enlarging within the slide, similar to the accordion gallery styles, but I want the image clicked on to get larger and the other images to remain the same size or get smaller.
I've tried CSS and javascript shown here but it did not work.
I am open to other plugins that may give me a closer result than this, but the accordion plugin here is the next closet but I still want to be able to see all of the images without them being cut off.
http://kerimthedj.com/new/photos

GIF slider in flexslider, how to begin the gif only when on slider

Right now I have a flexslider with four slides. The third slider is a gif rather than a jpg like the others.
The issue I am having is that this third gif slider apparently starts immediately when the page is reached as opposed to when you actually get to that slider. By the time one clicks through the first two sliders, the gif is just about finished.
Anyone have any idea as to how I would begin a GIF only when one reaches that
slider?
I finally found the solution for you after one hour of test, add the before function to your declaration code, and change the src of next img to empty and back to the original src do the work, like bellow :
JS :
this code will init the gif just before the display.
$('.flexslider').flexslider({
animation: "slide",
before: function(slider){
var src = $(slider).find('.flex-active-slide').next().find('img').attr('src');
$(slider).find('.flex-active-slide').next().find('img').attr('src','').attr('src',src);
}
});
Its work perfectly for me.
See JS Fiddle (you can notice that the counter in gif always start by 10, without before function you find that the counter is already start), hope that help.
As far as I know, it's not really possible to pause/stop/play GIF animations using code.
The workarounds I know of are...
Some browsers won't start the GIF animation until the element is actually visible on the screen, so you could hide the image until the slide is active and then $('#MyGifImage').show(). You'll need to test how this behaves in various browsers, however.
As suggested in this question you could create image sprites instead of an animated GIF.
Have you tried either of those methods?

Can Jssor video slider have Thumbnail navigation?

In the example, video slider is using bullet navigation, I have tried copying Thumbnail navigation codes from 'image-slider-2' in the example folder to the video slider file, but I encountered several problems:
I get an error message saying 'thumbnavigator' container height is not set, I have to manually set its height. But what I don't understand is in the example file, it is not required to set the height of thumbnavigator container, why?
After I set the height, the videos are working. However, the thumbenail images are not showing, leaving a blank navigation bar.
Is it possible to set thumbnail navigation for the video slider?
Besides, an off-topic question: Can transition effects be applied to video slider?
The video slider is a normal slider which contains a video element in each slide.
Actually, you can place everything you like in any slide.
So, the video slider is fully customizable as well.
Reference:
http://www.jssor.com/development/slider-with-thumbnail-navigator-jquery.html
http://www.jssor.com/development/slider-with-caption-jquery.html

Preload css background image, nivo slider issue

I'm having some trouble getting my wrapper's background image to preload before my nivo-slider slideshow loads. This is something my client is very picky about even though it's only a fraction of a second -_-
I've tried every jQuery and css method I've found on here and either it makes no difference or breaks the nivo-slider.
Here is a link to a test page
http://www.wheatbeakinc.com/test/
As you can see it loads fast enough for most people but like I said my client is picky about these kinds of things. Also the actual background image is larger in filesize than the test so it takes a little longer.
Can anyone offer any insight?
Thank You.
If you insert the background image as an actual image before the slider code and set it to hidden, it should at least start loading before nivo slider. (Background images load last).
E.g.
<img src="your-background-image.jpg" alt="" style="display:none" />
If that still doesn't work, you could wrap the nivo slider in window load instead of doc ready, so it only begins after all images on the page have loaded:
$(window).load(function(){
//slider code here
});

Categories

Resources