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

Method initEvents

js/card3.js:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 initEvents() {
65 const mouseenterFn = event => this.enter(event);
66 const mouseLeaveFn = event => this.leave(event);
67 this.DOM.el.addEventListener('mouseenter', mouseenterFn);
68 this.DOM.el.addEventListener('mouseleave', mouseLeaveFn);
69 }
70
71 enter(event) {
72 if ( this.leaveTimeline ) {

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected