防止幻灯片图像分页链接在图像更改时闪烁

Prevent slideshow image paging links from blinking when image changes

当单击幻灯片图像分页 link 时(幻灯片下方的点 div),整个分页导航行 blinks,同时图像过渡。我需要防止这种情况。

当我关闭 jQuery smoothHeight 设置时,此 blinking 停止,但我需要它来播放幻灯片。感谢您的帮助!

网站草稿:http://parkerrichard.com/studiogreen/html/residential/project-01.html

HTML:

        <!-- slideshow gallery -->          
        <div class="col-lg-8 col-md-8 col-sm-7 pull-left">
            <div class="flexslider">
                <ul class="slides" id="slideshow" ondragstart="return false;">
                    <li>
                        <div class="show-caption">
                            <img src="../img/arrow-right.png" class="img-responsive">
                        </div>
                        <img src="../img/residential/project-01/img-01.jpg" />
                        <div class="flex-caption right hidden-xs">
                            <div class="caption-content">
                                <p><span class="hcaption">PROJECT <span class="sm-spaced">1</span></span><br /></p>
                                <br />
                                Location: <span class="lite">Los Altos Hills, California</span><br />
                                Architect: <span class="lite">SDG Architects</span><br />
                                <br />
                                <p class="hcap">Each feature is set <br />against a backdrop of ornamental grasses, <br />perennials, and mature specimen trees.</p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-02.jpg" />
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-03.jpg" />
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-04.jpg" />
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-05.jpg" />
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-06.jpg" />
                    </li>
                    <li>
                        <img src="../img/residential/project-01/img-07.jpg" />
                    </li>
                </ul>
            </div>
        </div><!--/slideshow row -->

CSS:

.flexslider {
    background:none !important;
    border:none !important;
    box-shadow:none !important;
}

.slides {
    overflow: hidden !important;
}

.slides div .flex-caption {
    overflow: scroll !important;
}

.slides li img {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;

    /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
    */
    -ms-user-select: none;
    user-select: none;
}

.flex-direction-nav a  {
    color: #999 !important;
}

.flex-next {
    padding-right: 30px !important;
}

.flex-control-nav {
    text-align: right !important;
    padding-right: 0px !important;
}

.flex-control-paging li {
    margin: 0 0px 0 12px !important;
}

.flex-control-paging li a {
    color: transparent !important;
    display: visible !important;
}

.nodot .flex-control-paging li a { 
    display: none !important;
}

.flex-control-paging li a.flex-active {
    background: #6dab3e !important;
}

jQuery

$(window).load(function() {
    $('.flexslider').flexslider({
    animation: "fade",
    slideshow: false,
    smoothHeight: true
        });
    });

更新:为 "caption appears when cursor hovers over slideshow"

添加了 jQuery 脚本
$( "#slideshow" ).hover(function() {
    $( ".flex-caption" ).fadeToggle( "slow", "linear" );
    });

你不能尝试 .flexslider { overflow: visible !important} 但你必须调整父级的填充底部..