(el)
| 10 | |
| 11 | export class Intro { |
| 12 | constructor(el) { |
| 13 | // the SVG element |
| 14 | this.DOM = {el: el}; |
| 15 | // SVG texts |
| 16 | this.DOM.circleText = [...this.DOM.el.querySelectorAll('text.circles__text')]; |
| 17 | // total |
| 18 | this.circleTextTotal = this.DOM.circleText.length; |
| 19 | |
| 20 | this.setup(); |
| 21 | } |
| 22 | setup() { |
| 23 | // need to set the transform origin |
| 24 | // need to set the transform origin in the center |