Solved

jquery JCarousel with continuous smooth scrolling (no pause)

Posted on 2011-03-10
2
11,726 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
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)
Suggested Courses

738 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