I’ve created a calendar timeline in html. I want to create a vertical line that progresses from left to right over time, the line needs to overlay all the html elements. Similar to Google calendar’s way of letting you know what time of day you are at.
An example below of what I want:
The black line going vertically across is what I want to create in javascript. I want it to be on top of all elements
I’m trying to create this for a university project and I have no clue where to start
So far I have a progress bar element (using twitter bootstrap) and javascript that updates the width % of the progress bar by calculating the % val of currentTime/(end-start)
2
Answers
CSS:
Then animate CSS width or javascript the left value
This is a rough example of where to start. You want to look for efficiency now