MCPcopy Create free account
hub / github.com/codrops/GridItemHoverEffect / constructor

Method constructor

js/card3.js:12–29  ·  view source on GitHub ↗
(DOM_el)

Source from the content-addressed store, hash-verified

10 };
11
12 constructor(DOM_el) {
13 this.DOM.el = DOM_el;
14 this.DOM.number = this.DOM.el.querySelector('.card__box-number');
15 this.DOM.tags = this.DOM.el.querySelector('.card__box-tags');
16 this.DOM.category = this.DOM.el.querySelector('.card__box-category');
17
18 if ( this.DOM.number ) {
19 this.DOM.number.dataset.splitting = '';
20 }
21 if ( this.DOM.category ) {
22 this.DOM.category.dataset.splitting = '';
23 }
24 Splitting();
25 if ( this.DOM.number )
26 this.DOM.numberChars = this.DOM.number.querySelectorAll('.char');
27 if ( this.DOM.category )
28 this.DOM.categoryChars = this.DOM.category.querySelectorAll('.char');
29 }
30
31}
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected