This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Simple timeline visualizer for gsap. I do not support this active. */ | |
/* Usage: new TimelineVisualizer(yourGsapTimelineObject) */ | |
export default class TimelineVisualizer { | |
constructor(animation) { | |
this.timelineVisual = document.createElement('div'); | |
this.timelineVisual.className = 'timeline-visual'; | |
this.marker = document.createElement('div'); | |
this.marker.className = 'timeline-marker'; | |
this.animation = animation; |