Live data from Hacker News

Show HN: TargetJ – New JavaScript framework that can animate anything

github.com

11–20 of 51 posts

Re: Show HN: TargetJ – New JavaScript framework that can animate anything

#11

Does this really have no types? How can something like this be usable in 2024 with no types?

Thank you for your feedback. Every target in TargetJ has an onEnabled method that can be used to verify types before enabling the target. Only enabled targets will run. You can have targets report errors during initialization if they receive the wrong type.

Re: Show HN: TargetJ – New JavaScript framework that can animate anything

#13

Seems really laggy

Thank you for your feedback. There was a bug on the site that caused the slowdown. The code is animated to show how it operates in connection with the output, and there was a bug that contributed to the delay. However, I believe I have fixed it.

Re: Show HN: TargetJ – New JavaScript framework that can animate anything

#17
post #15

I tried the examples on iOS Safari and the performance seems really bad. Even scrolling is super choppy. Could this just be the examples page?

Thank you for your feedback—it’s definitely appreciated. I believe I have fixed the performance issue, and it should run smoothly now. Please let me know if you still experience any performance issues.

Re: Show HN: TargetJ – New JavaScript framework that can animate anything

#18
post #16

Does this play nice with react or similar Dom diffing frameworks? Can the animation values be fed in through react state variables?

Thank you for your question. I don't think it will work well with React. While both React and TargetJ utilize diffing algorithms, there are significant differences between them. TargetJ aims to keep the DOM as small as possible by default, only including visible elements to speed up page rendering. Additionally, it is designed to maintain a flat DOM tree.

Integrating just the DOM animation from TargetJ with React is likely not feasible, as the two would conflict.

Re: Show HN: TargetJ – New JavaScript framework that can animate anything

#19
post #4

The examples page is impossible to scroll, can't use arrow keys, can't use middle mouse, can't even grab the scrollbar

Thank you for bringing this to my attention. I apologize for it and will work on a fix over the few days. I'll update as soon as the issue is resolved.

I have now added key arrow navigation. Please let me know if you still have any issues navigating the site. Thanks again.
Post reply on HN