MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / VerticalTimeline

Function VerticalTimeline

assets/js/vertical_timeline.js:3–10  ·  view source on GitHub ↗
( element )

Source from the content-addressed store, hash-verified

1(function(){
2
3 function VerticalTimeline( element ) {
4 this.element = element;
5 this.blocks = this.element.getElementsByClassName("cd-timeline__block");
6 this.images = this.element.getElementsByClassName("cd-timeline__img");
7 this.contents = this.element.getElementsByClassName("cd-timeline__content");
8 this.offset = 0.8;
9 this.hideBlocks();
10 };
11
12 VerticalTimeline.prototype.hideBlocks = function() {
13 if ( !"classList" in document.documentElement ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected