I am building a slider in pure HTML / CSS (no JS). It works very well, see the code.
You will need to download it and execute it locally to understand my problem as it is related to the back and forward buttons of the browser.
When clicking on links to navigate, the URL changes to #a1, #a7, #a5, whatever you are doing. The slider scrolls to the appropriate slide correctly. If you manually change the URL, putting #a3 instead of #a7 for example, slider will also scroll correctly.
However, when you go back (or forward), the URL changes from #a3 to #a7 but the content doesn't scroll.
Any idea why? Any idea what I can do to have the scroll on the back action?