Greetings from a previous react-mirror implementation #1413
Theadd
started this conversation in
Show and tell
Replies: 1 comment
-
@Theadd that's pretty cool to see thanks! I'm open to including a more complex demo, if you have some easily shareable html element/component that would be a good example send me a link. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @iamogbz !
I just stumbled upon this project by pure chance and I was really surprised because I had a lot of fun implementing exactly the same project a while ago, even with the same name! =) But with the stack from 9 years ago (React v0.14 w/ ES6), just before react-portal came out, being completely obsolete for years now. Nice to see yours in TS + React v18.0 + hooks.
[LIVE DEMO / PLAYGROUND]
Here's another demo, displaying a seamless mirror of an animated
react-motion
-based "physics-"game to prove its full potential at reflecting the most complex cases.I achieved the "eventful" part just by setting the
pointer-events
css rule toall
on the replica currently being hovered andnone
to all other replicas (mirrors).Well, although implementing it was quite fascinating, unfortunately, I did not see many practical applications for it.
It would be great if you could add a better demo. I've added your repo as an up to date alternative to mine.
Beta Was this translation helpful? Give feedback.
All reactions