#94 duration parallax background
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#94
- issue
- state:closed
This should be an official plugin. Durations should be afforded the ability to change the background around where the duration starts and ends. The metadata itself should be a link to an image - just like the icon equivalent for moments. The background should be stretched, keeping its aspect ratio, to fill the entire width and height of the timeline, adjusting as necessary as the viewport changes (window size changing, phone orientation changing, etc). If the start and end of the duration is inside the viewport, the center of the stretched image (x axis) should be the center between the start and end of the duration. If the start or end of the duration is beyond the viewport, then the viewport's edge will be the new judge of where the middle will be - if both start and end are beyond the viewport, then the image just becomes the background of the timeline. If only one (start or end) is beyond the viewport, then the x-axis middle of the image should be calculated between the visible edge of the duration (the one inside the viewport) and the edge of the viewport that the duration is beyond. If a duration is summarized (start and end are too close to render as a line), then the background shouldn't apply. Also, for multiple durations, the backgrounds should be stacked in order of specificity - the smaller durations' backgrounds should be on-top of larger durations. Additionally, the edges of the backgrounds should "blend" - there should be a gradient to transparency at the edge of the background, which would help them flow together. Vertically, after the image is stretched, the background should be centered. https://github.com/openchronology/timeline-app/issues/94