I am looking to toggle the visibility of elements on a timeline based on the selected year.
For example, if a user clicks on the year 2015
, all child elements should be hidden. If the user clicks on the same year again, the elements should then be shown.
I have customized the HTML and CSS for my design, with the original script available at
http://codyhouse.co/gem/vertical-timeline/
I've created a demo on JSFiddle here: http://jsfiddle.net/6nvumkxc/2/
However, I'm encountering an issue where clicking on the year only hides the first element instead of all the cd-timeline-block
within that specific year block.