This week (or late last week), I worked on something that I thought was an interesting requirement. I've seen it come up twice now. There were no takers. So, I thought I'd give it a whirl.
The requirement was to have top-level menu items jump to an accordion further down the page and open the corresponding accordion item. I call it a "remote control" accordion.
Has anyone else seen this requirement? Anyway, here's my solution in plain JavaScript.
👋 Hey there, I am Waylon Walker
I am a Husband, Father of two beautiful children, Senior Python Developer currently working in the Data Engineering platform space. I am a continuous learner, and sha
Happy birthday week, @waylonwalker !
This week (or late last week), I worked on something that I thought was an interesting requirement. I've seen it come up twice now. There were no takers. So, I thought I'd give it a whirl.
The requirement was to have top-level menu items jump to an accordion further down the page and open the corresponding accordion item. I call it a "remote control" accordion.
Has anyone else seen this requirement? Anyway, here's my solution in plain JavaScript.
codepen.io/marklchaves/pen/oNXyNLQ
Comments are welcome ;-)
Thanks @marklchaves