CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

Disappearing Arrows #610

Closed lorried closed 10 years ago

lorried commented 10 years ago

Having an issue with the navigational arrows appearing, then disappear on each slide. I saw something with this in a previous issue but it was marked as resolved and had to do with the fade effect. I am using a fade effect.

Here's my work in progress. http://www.jonestheflorist.com/event_gallery.htm

Any suggestions how to make them stick around and stop with the vanishing act? Thanks!

Mottie commented 10 years ago

Hi @lorried!

Try adding a z-index to the arrow definition:

.anythingSlider-mini-light .arrow {
    z-index: 1;
}
lorried commented 10 years ago

The z-index fixed it on that site. Now however I've got another website that it isn't working on either. The arrows are doing their best to defy me!
I have the nav tabs working, I've tried adding a z-index and I'm batting zero. It looks like the image is there, but just not showing up. Here's the website: http://www.hawleysflorist.com. It's near the bottom of the page.
Any ideas?

Mottie commented 10 years ago

It looks like the arrow image is missing...

.anythingSlider-default .arrow a {
    display: block;
    width: 45px;
    height: 140px;
    margin: -70px 0 0 0; /* half height of image */
    text-align: center;
    outline: 0;
    background: url(../gifs/default.png) no-repeat;
}

The image is pointing to http://www.hawleysflorist.com/gifs/default.png which doesn't exist.

lorried commented 10 years ago

Something told me this would be an obvious one that I missed. Thanks Mottie!

That does bring me to another question. Since I'm using a theme other than the default, is it even necessary to call the css file for the default (anythingslider.css)? Or can I just call the one from the theme I'm using?

Mottie commented 10 years ago

You only need the theme css file, default is for default ;)

lorried commented 10 years ago

These issues are resolved, thanks again for the help!