Open MrSpiffyClean opened 4 years ago
remember to include webkit vendor prefixes on css
In order to make my idea of having the titles be fixed while scrolling two things have to be done. The first is to have the Customize title out of the div containing stuff, such that it isn't on the parent div of the countrieswrapper. The second is specifying the top positions for both elements, which can break stuff eventually because of hardcoding values.
Afterwards, programming the titles as a way to get to the top, with https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView for instance
Odd artifact when scrolling, the div seems less big than it should, probably a rounding issue due to 0.1 rem.
only vendor prefix I think exists is position: -webkit-sticky; putting it here when github stops bugging out.
last thing to look at is the wide margin/padding the spacer has and the pixel issue with the scroll-to-top.
Final issues before pull request:
Accessibility issues:
steps to fix.