Solved

jquery JCarousel with continuous smooth scrolling (no pause)

Posted on 2011-03-10
2
11,545 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

744 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

13 Experts available now in Live!

Get 1:1 Help Now