Open page directly on a given slide

0

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

<li id="item1">

Calling the item:

<a href="pagina.html#item1">
    
asked by anonymous 09.10.2016 / 17:07

1 answer

0

You can use jQuery by detecting distance from the top of the page to li , and then making the page scroll to that point.

See this example link

    
15.10.2016 / 04:19