hmongouachon / rgbKineticSlider

A fully customizable webgl slider based on PixiJs and Gsap
348 stars 40 forks source link

Adding the pagination dots to the slider? #10

Open mosula opened 2 years ago

mosula commented 2 years ago

Hi there,

first of all thanks for creating/building such a great slider ๐Ÿ‘

Just wondered if there's anyways to add the pagination dots to the slider, please?

Thanks for your help in advance

Mosula

hmongouachon commented 2 years ago

Hello ! Sorry at this time there is no built-in pagination. But if you know a little bit javascript, check the core file :

The slider use the function slideTransition(next) to transit between slides with next as the slide index. Then loop your dots list with some data-index properties, get the data-index on click and finally call the slideTransition.

Hope it helps !

mosula commented 2 years ago

Hi hmonguachon, Thanks for the quick reply๐Ÿ˜Š

I am not really a javascript/coder at all although I was able to follow your advice on adding the link on the other thread...

I may leave it for now as I don't really want to break the slider๐Ÿ˜ฑ๐Ÿ˜ญ

Thanks for your help and such a quick response.๐Ÿ‘

mosula