Solved

jquery JCarousel with continuous smooth scrolling (no pause)

Posted on 2011-03-10
2
11,588 Views
Last Modified: 2013-11-05
Hi,

I'm just wondering if this is possible. I would like it to continually play and not pause. The auto value is set to 0.1. Putting it to 0 turns off auto scrolling
I think it can be done with easing but it is a bit beyond my knowledge.

Thanks in advance.

reference links:
http://sorgalla.com/projects/jcarousel/examples/static_auto.html

configuration:
http://sorgalla.com/projects/jcarousel/#Configuration

Sample code attached.
jQuery('#right-carousel').jcarousel({
        vertical: false,
		wrap: "circular",
		auto: 0.1,
		rtl: false,
		scroll: 1,
		animation: "slow"
    });

Open in new window

0
Comment
Question by:mrduckers
2 Comments
 
LVL 8

Accepted Solution

by:
McNetic earned 500 total points
ID: 35108194
There's two tricks. One, set the auto interval to a really small value, so it does only stop for a fraction of a second, and two, set easing to 'linear' instead of the default 'swing'. Try the following values:
    jQuery('#mycarousel').jcarousel({
        vertical: false,
        wrap: 'circular',
        auto: 0.001,
        rtl: false,
        scroll: 1,
        animation: 2000,
        easing: 'linear'
    });

Open in new window

Hints: animation can be set to a millisecond value, so it goes even slower than slow with bigger values (slow == 600). Setting auto to values < 0.001 will not help, but probably cause the animation to flicker / go slow, as the minimum time between two timeouts is 1 ms and the auto value is internally multiplied by 1000 to get the ms value.
0
 

Author Closing Comment

by:mrduckers
ID: 35114620
thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can I   ajax html table  rows? 20 62
Animated .jpg? 13 59
How to drill down using class name and find the text? 25 32
Why is this panel heading creating extra space 2 34
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now