Editing Neo Slider to move in one direction

Posted by user2106416 on Stack Overflow See other posts from Stack Overflow or by user2106416
Published on 2013-07-01T03:50:42Z Indexed on 2013/07/01 4:21 UTC
Read the original article Hit count: 270

Filed under:
|
|

I have a website with brandspace theme from pixelentity.

Currently, the slider move from right to left ( auto transition) . But, when the slider reaches the last image, it will go back to the first image by making all previous images sliding back from left to right.

I want to make the slider to have a normal transition,i.e. going back to first image but still with the image sliding from right to left.

Below is the slider.php code.:

<?php $t =& peTheme(); ?>
<?php list($pid,$conf,$loop) = $t->template->data(); ?>
<?php $w = $t->media->width(940); ?>
<?php $h = $t->media->height(300); ?>


<div class="peSlider peVolo" data-autopause="disabled" data-plugin="<?php echo   apply_filters("pe_theme_slider_plugin","peVolo"); ?>" data-controls-arrows="edges-full" data-controls-bullets="disabled" data-icon-font="enabled">
<?php while ($slide =& $loop->next()): ?>

<?php $link = empty($slide->link) ? false: $slide->link; ?>
<?php $img = $t->image->resizedImg($slide->img,$w,$h); ?>

<div data-delay="4" <?php echo $slide->idx == 0 ? ' class="visible"' : ''; ?>>
    <?php if (isset($slide->caption)) $t->slider->caption($slide->caption); ?>
    <?php if ($link): ?>
    <a href="<?php echo $link ?>" data-flare-gallery="fsGallery<?php echo $pid ?>">
        <?php echo $img; ?>
    </a>
    <?php else: ?>
        <?php echo $img; ?>
    <?php endif; ?>
</div>
<?php endwhile; ?>
</div>

© Stack Overflow or respective owner

Related posts about php

Related posts about html