javascript - Vertical and horizontal slides in flexslider - Stack Overflow

im trying to implement flexslider slides with vertical and simultaneous li by slide like carousel with

im trying to implement flexslider slides with vertical and simultaneous li by slide like carousel with fade effect but i cant find the correct behavior. My code:

<div class="flexslider">
<ul class="slides">
    <?php
    while ($reg = mysql_fetch_array($sql)){
        echo "<li> //VERTICAL
                <span>".$reg['title']."</span>
                <ul class=\"work\"> //HORIZONTAL
                    <li>
                        <img src=\"".$reg['title']."/images/01.jpg\" />
                    </li>
                    <li>
                        <img src=\"".$reg['title']."/images/02.jpg\" />
                    </li>
                    <li>
                        <img src=\"".$reg['title']."/images/03.jpg\" />
                    </li>
                </ul>
            </li>";
    }
    ?> 
</ul>

and the JS

<script type="text/javascript"> 
$(window).load(function() {     
    $('.flexslider').flexslider({
        animation: "fade",
        animationLoop: false
    });
});
</script>

The example

What am I doing wrong?

im trying to implement flexslider slides with vertical and simultaneous li by slide like carousel with fade effect but i cant find the correct behavior. My code:

<div class="flexslider">
<ul class="slides">
    <?php
    while ($reg = mysql_fetch_array($sql)){
        echo "<li> //VERTICAL
                <span>".$reg['title']."</span>
                <ul class=\"work\"> //HORIZONTAL
                    <li>
                        <img src=\"".$reg['title']."/images/01.jpg\" />
                    </li>
                    <li>
                        <img src=\"".$reg['title']."/images/02.jpg\" />
                    </li>
                    <li>
                        <img src=\"".$reg['title']."/images/03.jpg\" />
                    </li>
                </ul>
            </li>";
    }
    ?> 
</ul>

and the JS

<script type="text/javascript"> 
$(window).load(function() {     
    $('.flexslider').flexslider({
        animation: "fade",
        animationLoop: false
    });
});
</script>

The example

What am I doing wrong?

Share edited May 17, 2013 at 14:04 Henrique Barcelos 7,9001 gold badge44 silver badges68 bronze badges asked May 17, 2013 at 14:02 santyassantyas 961 gold badge2 silver badges12 bronze badges 6
  • See the docs: woothemes./flexslider – Henrique Barcelos Commented May 17, 2013 at 14:09
  • If you mean to use multiple flexsliders, i just want a single query... thanks you – santyas Commented May 17, 2013 at 14:23
  • It seems like you can't fade and slide at the same time... – Henrique Barcelos Commented May 17, 2013 at 14:30
  • No, only fade. The first group of li, then the next and etc. I apologize for my english – santyas Commented May 17, 2013 at 14:45
  • You want each ul to be an horizontal carrousel and the ul set to be a vertical carrousel, is this it? – Henrique Barcelos Commented May 17, 2013 at 14:48
 |  Show 1 more ment

1 Answer 1

Reset to default 3

As far as I understood, you want something like this:

$('.flexslider').flexslider({
    animation: "fade",
    direction: "vertical",
    animationLoop: false
});

If the inner images aren't animated, this should do it.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744809509a4594980.html

相关推荐

  • javascript - Vertical and horizontal slides in flexslider - Stack Overflow

    im trying to implement flexslider slides with vertical and simultaneous li by slide like carousel with

    2天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信