Skip to content

Instantly share code, notes, and snippets.

View MarcoPNS's full-sized avatar
🚀
at the moon!

Marco Sadowski MarcoPNS

🚀
at the moon!
View GitHub Profile
/* 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;