Solved

jquery JCarousel with continuous smooth scrolling (no pause)

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html input 8 44
jQuery when a text link is clicked? 16 39
xjs: how to get sum of value in for loop 2 19
How to control cache of some js files ? 7 44
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
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…
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)
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…

820 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