(el)
| 20 | |
| 21 | export class Grid extends EventEmitter { |
| 22 | constructor(el) { |
| 23 | super(); |
| 24 | this.DOM = {el: el}; |
| 25 | |
| 26 | this.gridItems = []; |
| 27 | this.DOM.items = [...this.DOM.el.querySelectorAll('.grid__item')]; |
| 28 | this.DOM.items.forEach(item => { |
| 29 | this.gridItems.push(new GridItem(item)); |
| 30 | }); |
| 31 | |
| 32 | this.showItems(); |
| 33 | this.initEvents(); |
| 34 | } |
| 35 | // Initial animation to scale up and fade in the items |
| 36 | showItems() { |
| 37 | gsap |
nothing calls this directly
no test coverage detected