Customize non-data components of the carousel.
settings(
accessibility,
adaptiveHeight,
autoplay,
autoplaySpeed,
arrows,
asNavFor,
appendArrows,
appendDots,
prevArrow,
nextArrow,
centerMode,
centerPadding,
cssEase,
customPaging,
dots,
dotsClass,
draggable,
fade,
focusOnSelect,
easing,
edgeFriction,
infinite,
initialSlide,
lazyLoad,
mobileFirst,
pauseOnFocus,
pauseOnHover,
pauseOnDotsHover,
respondTo,
responsive,
rows,
slide,
slidesPerRow,
slidesToShow,
slidesToScroll,
speed,
swipe,
swipeToSlide,
touchMove,
touchThreshold,
useCSS,
useTransform,
variableWidth,
vertical,
verticalSwiping,
rtl,
waitForAnimate,
zIndex,
...
)
logical, Enables tabbing and arrow key navigation, Default: TRUE
logical, Enables adaptive height for single slide horizontal carousels., Default: FALSE
logical, Enables Autoplay, Default: FALSE
numeric, Autoplay Speed in milliseconds, Default: 3000
logical, Prev/Next Arrows, Default: TRUE
character, Set the slider to be the navigation of other slider (Class or ID Name), Default: null
character, Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object), Default: $(element)
character, Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object), Default: $(element)
character (html|jQuery selector) | object (DOM node|jQuery object),
Allows you to select a node or customize the HTML for the "Previous" arrow.,
Default: <button type="button" class="slick-prev">Previous</button>
character (html|jQuery selector) | object (DOM node|jQuery object),
Allows you to select a node or customize the HTML for the "Next" arrow.,
Default: <button type="button" class="slick-next">Next</button>
logical, Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts., Default: FALSE
character, Side padding when in center mode (px or \ Default: '50px'
character, CSS3 Animation Easing, Default: 'ease'
function, Custom paging templates. See source for use example., Default: n/a
logical, Show dot indicators, Default: FALSE
character, Class for slide indicator dots container, Default: 'slick-dots'
logical, Enable mouse dragging, Default: TRUE
logical, Enable fade, Default: FALSE
logical, Enable focus on selected element (click), Default: FALSE
character, Add easing for jQuery animate. Use with easing libraries or default easing methods, Default: 'linear'
numeric, Resistance when swiping edges of non-infinite carousels, Default: 0.15
logical, Infinite loop sliding, Default: TRUE
numeric, Slide to start on, Default: 0
character, Set lazy loading technique. Accepts 'ondemand' or 'progressive', Default: 'ondemand'
logical, Responsive settings use mobile first calculation, Default: FALSE
logical, Pause Autoplay On Focus, Default: TRUE
logical, Pause Autoplay On Hover, Default: TRUE
logical, Pause Autoplay when a dot is hovered, Default: FALSE
character, Width that responsive object responds to. Can be 'window', 'slider' or 'min' (the smaller of the two), Default: 'window'
object, Object containing breakpoints and settings objects (see demo). Enables settings sets at given screen width. Set settings to "unslick" instead of an object to disable slick at a given breakpoint., Default: none
numeric, Setting this to more than 1 initializes grid mode. Use slidesPerRow to set how many slides should be in each row., Default: 1
element, Element query to use as slide, Default: ''
numeric, With grid mode intialized via the rows option, this sets how many slides are in each grid row. dver, Default: 1
numeric, # of slides to show, Default: 1
numeric, # of slides to scroll, Default: 1
numeric, Slide/Fade animation speed in milliseconds, Default: 300
logical, Enable swiping, Default: TRUE
logical, Allow users to drag or swipe directly to a slide irrespective of slidesToScroll, Default: FALSE
logical, Enable slide motion with touch, Default: TRUE
numeric, To advance slides, the user must swipe a length of (1/touchThreshold) * the width of the slider, Default: 5
logical, Enable/Disable CSS Transitions, Default: TRUE
logical, Enable/Disable CSS Transforms, Default: TRUE
logical, Variable width slides, Default: FALSE
logical, Vertical slide mode, Default: FALSE
logical, Vertical swipe mode, Default: FALSE
logical, Change the slider's direction to become right-to-left, Default: FALSE
logical, Ignores requests to advance the slide while animating, Default: TRUE
numeric, Set the zIndex values for slides, useful for IE9 and lower, Default: 1000
unused
list of class c('setting','slickR')
To find further information on the attributes that can be used please refer to http://kenwheeler.github.io/slick/.
if(interactive()){
slick <- slickR(obj=nba_team_logo$uri)
slick
# Use settings function to manipulate the slick object
# Add dots
slick + settings(dots = TRUE)
# Autplay elements in the carousel
slick + settings(autoplay = TRUE, autoplaySpeed = 1000)
}