Open page directly on a given slide

Asked

Viewed 29 times

0

I have a page that is entirely a slide, just with the menu next to it. I would like to know how to open this page directly on a given slide. I have tried the common and best known method, adding an ID to each slide item, which is a list (li) and then call the page by passing the link of the same + the slide id I want to open. But nothing happens and always opens on the first slide item. If anyone has ideas it would be helpful. Thank you.

<li id="item1">

Calling the item:

<a href="pagina.html#item1">
  • Which lib are you using? You need to check your lib API to perform such an action. When we use Slick, we can use initialSlide: 2, for example.

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.