The transition effect to use for manually triggered transitions (not timer-based The classname to assign to prev/next links when they cannot be activated (due The number of milliseconds to add onto, or substract from, the time before the This is useful when you want to start with an automatic slideshowīut later switch to a manual slideshow. Option which can be set dynamically to instruct C2 to stop transitioning The template can reference real-time state information from the slideshow,Ĭycle2 uses simple Mustache-style templates by default. cycle-caption thatĪ template string which defines how the slideshow caption should be formatted. By default,Ĭycle2 looks for an element with the class. Identifies the element that should be used for the slideshow caption. $.fn. = '.mySlideshows' caption jQuery selector '>. This value can only be changed programmatically and it can not beĬhanged after the DOM ready event has fired. Will automatically find and initialize it when the DOM ready event fires. cycle-slideshow.Īdd the cycle-slideshow class to your slideshow container and Cycle2 (programmatic use only) jQuery selector '.cycle-slideshow'Ī jQuery selector which identifies elements that should be To disable height management, set this option's value to -1 Hold a set of images that are 600x400, use a ratio string like this: To force the slideshow container to a specific aspect ratio, for example to The container does not have a specific height set via CSS. a ratio string can be provided which identifies the width:height aspectīy default, the slideshow's first slide is used as the sentinel slideĪnd its demensions will control the height of the slideshow container if.the string "calc" can be provided to instruct Cycle2 to calculate the.an integer can be provided to identify the zero-based.There are three ways this option can be used: This option determines whether or not Cycle2 will provide height managementįor the slideshow which can be very useful in fluid or responsive designs. When a slideshow is displaying the first slide it can not advance backward.īy default a slideshow will advance seamlessly from the last slide to the first. Last slide it can no longer be advanced forward, it can only advance backward. If set to false then once a slideshow reaches its This option determines whether or not a slideshow can advance from the last slide to theįirst (or vice versa). Name Type Default Value Description allow-wrap boolean true Slide elements in order to have specific properties for specific slides. When setting options programmically the option nameĭoes not contain the data-cycle- prefix and the string is camelCased on hyphens:Īll options can be declared with data-cycle-* attributes on the containerĮlement and will be inherited by all slides. Options can also be set programatically if you prefer, by passing an options hash Reduces (or eliminates) the need for custom initialize script. This is the preferred method of setting slideshow options as it greatly ![]() ![]() Auto-Init Options Commands Events Misc Advanced API Auto-InitializationĬycle2 slideshows can be automatically initialized simply by adding the classnameĬycle-slideshow to your slideshow container element.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |