Skip to content

Time based instead of click #118

Closed Answered by Danny-Engelman
barakadax asked this question in Q&A
Discussion options

You must be logged in to vote

Wrap the <css-doodle> in your own Web Component <my-doodle>:

customElements.define("my-doodle",class extends HTMLElement{
  connectedCallback(){
      setInterval( ()=> this.querySelector("css-doodle").update() , 2000 )
  }
})

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@barakadax
Comment options

@barakadax
Comment options

Answer selected by barakadax
Comment options

You must be logged in to vote
1 reply
@barakadax
Comment options

Comment options

You must be logged in to vote
1 reply
@barakadax
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants