yonicd / slickR

slick carousel htmlwidget for R
https://yonicd.github.io/slickR/
Other
159 stars 14 forks source link

variable sizing for synched carousels? #15

Closed b-tierney closed 6 years ago

b-tierney commented 6 years ago

Is there anyway to have synched carousels where the top images are larger than the bottom?

b-tierney commented 6 years ago

Oops, apologies, nevermind I figured it out.

elfore commented 6 years ago

@b-tierney Can you tell me how to do it cause I didn't figure it out?

yonicd commented 6 years ago

are they regular images or plot outputs?

b-tierney commented 6 years ago

I found a height parameter that did the trick for me:

slickR(obj=c(""image1,"image2","image3"),slideType=c('img'),slideId=c('top'),width="100%",slideIdx=list(c(1,2,3)),synchSlides=c('top','bottom'),height=550)

slickR(obj=c(""image1,"image2","image3"),slideType=c('img'),slideId=c('bottom'),width="100%",slideIdx=list(c(1,2,3)),synchSlides=c('top','bottom'),height=200)

yonicd commented 6 years ago

those are synchronized if they are in separate calls?

b-tierney commented 6 years ago

yep, they're just in the same column, works great

yonicd commented 6 years ago

huh... didnt think to do it that way. cool