Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
522 views
in Technique[技术] by (71.8m points)

jquery - Owl Carousel, start with current item

I put an Owl-Carousel on my Concrete5.7 site. It works as a navigation by displaying items of a page-list-block. It is embedded in all concerning pages. It works fine, but after I clicked on an item the carousel reloads and jumps back to the first item.

Now I put an id #current to the current item, but how can it be used to display that item as the start item?

<div class="owl-item active" style="width: 255px; margin-right: 10px;">
  <a href="/index.php?cID=992"> 
    <div class="item" id="current" style="background-image: url(/my_image.jpg );"></div>    
question from:https://stackoverflow.com/questions/65921995/owl-carousel-start-with-current-item

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...