Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
That's the design in question.

Here is my jQuery:

JavaScript
$().ready(function() {
	// Using custom configuration
    $('#main-carousel').carouFredSel({
        items               : 2,
        direction           : "left",
        responsive          : true,
        width               : '100%',
        height              : 'auto',
        scroll : {
            items           : 1,
            easing          : "elastic",
            duration        : 1000,                         
            pauseOnHover    : true
        }
    });
});


My HTML:

HTML
<!-- CAROUSEL -->
<div class="row carousel">
    <div class="col-sm-12">
        <script type="text/javascript" src="<?php echo __ASSET_PATH__ ?>/js/jquery.carouFredSel.min.js"></script>
        <script type="text/javascript" src="<?php echo __ASSET_PATH__ ?>/js/jcarousel.js"></script>
        <div id="main-carousel">

            <div>
                <img src="<?php echo __ASSET_PATH__ ?>/img/swaf-hero-bus.jpg" alt="SWAF-hero-bus" title="" />

                <span class="content">Learn About Fleet Refinish<span class="action"> </span></span>

            </div>

            <div>
                <img src="<?php echo __ASSET_PATH__ ?>/img/swaf-hero-bus.jpg" alt="SWAF-hero-bus" title="" />

                <span class="content">Learn About Fleet Refinish<span class="action"> </span></span>

            </div>

        </div>
    </div>
</div> <!-- END .CAROUSEL -->


I have no CSS on it.. I don't understand why it's minimizing it to 40px through the plugin itself. The height will adjust since this layout is responsive. So it could minimize or maximize so I don't want to set a defined height in particular..

Any ideas?
Posted
Updated 13-Dec-13 8:00am
v3

Uncaught TypeError: Object [object Object] has no method 'bxSlider' jcarousel.js:2
 
Share this answer
 
Comments
hschillig 13-Dec-13 13:59pm    
Oh I used a different slider now.. I updated my page with the new slider I'm using. It doesn't give me the error the other one was. I was using CarouFredSel before. This slider works perfectly =) Sorry forgot to update this quesiton.
I went with a different solution. However, I would love to keep this open so I could use this plugin in the future if anyone solves it =)

BXSlider is a fantastic alternative!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900