Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to trigger function in start and end? #131

Closed
jingyuLin1999 opened this issue Sep 19, 2021 · 1 comment
Closed

how to trigger function in start and end? #131

jingyuLin1999 opened this issue Sep 19, 2021 · 1 comment

Comments

@jingyuLin1999
Copy link

This function fires only twice, start and end.

erd.listenTo(document.getElementById("test"), function(element) {
  var width = element.offsetWidth;
  var height = element.offsetHeight;
  console.log("Size: " + width + "x" + height);
});
@wnr
Copy link
Owner

wnr commented Sep 21, 2021

@jingyuLin1999 Can you provide more information? A code-pen example or similar would be nice. I don't understand the context/problem.

@wnr wnr closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants