I hope someone can give some pointers on how to achieve navigation like khan academy for the video lessons (see screenshot: left-side navigation). I think I can do the hover effect (where the background of the hovered video title is highlighted with the brown color for example) – basically by using a :hover in css. however, I am not sure how to add that “play” sign, circle and lines you see. If i can figure this out with your help, I would also consider changing the “play” shape with a sequence number (1, 2, 3 etc.). The effect is nice because it shows the videos are connected in a series. I am using twitter bootstrap 3.3.5 for css.
Thanks!
2
Answers
I used Akorn's answer as a baseline to achieve what I needed. This was a nice exercise for me (new to css). I fiddled with the css and html, removed a bunch of properties that seemed to do nothing, and came up with a way to use this in a table instead of an un-ordered list - the way I need it: open (first item), line (throughout) then close (last item). Here's the fiddle. I hope this gets improved or reworked and if anybody does please update this page, thanks!
CSS
HTML
CSS Path and Circle can be used. Refrences here: http://www.w3schools.com/svg/svg_path.asp
HOWEVER, Lets look at how Khan coded this UI Feature:
I used SnappySnippet to extract just one line item.
This generates a JS Bin that I only began to clean up and rename the generic jargon. Use this code to understand how the CSS generates these objects. Continue to clean up the code, then insert this sub-nav-item into a repeating list.