carousel

Which Javascript I need for a carousel with random photos from specific folder?

百般思念 提交于 2020-12-27 06:44:47
问题 I have a problem that seems small, but it is no longer making me sleep at night, I am probably thinking about it too much and I have lost sight of the correct path! I'm using Bootstrap 4 as Framework. I have to insert an automatic, interaction-free, full-page Carousel that displays images in random order each time the page is refreshed. It has to get the images from a specific folder, because I have a large number of images. Anyone can help me with the Javascript that i need for do that??

How to get future items and past items by specific index like in a carousel

◇◆丶佛笑我妖孽 提交于 2020-12-15 07:53:25
问题 I'm trying to create a custom carousel. And I'm stuck with the algorithm. I need to get future and past items by specific index. Carousel can move around infinitely. Example: var exampleArray = [1,2,3,4,5,6,7,8,9]; slice(exampleArray, 0); -->> currentItem = [1], futureItems = [2,3,4,5], pastItems = [6,7,8,9] slice(exampleArray, 4); -->> currentItem = [5], futureItems = [6,7,8,9], pastItems = [1,2,3,4] slice(exampleArray, 7); -->> currentItem = [8], futureItems = [9,1,2,3], pastItems = [4,5,6

bootstrap 4 carousel caption is not visible on small devices

人盡茶涼 提交于 2020-08-22 11:55:41
问题 I was practicing bootstrap 4 carousal example given in http://v4-alpha.getbootstrap.com/examples/ . carousal caption is not visible when testing it for mobile or small screen. Any help please. <div id="myCarousel" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <div class="carousel