Creating a Matrix Rain code with Brython :) #2473
Unanswered
BobSquarePants
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, You don't need to use an HTML table, you just need a div that will be your screen (CSS position:relative), and add your random characters with a span with a (CSS position:absolute). Then, you just need to use transition to animate it, cf https://developer.mozilla.org/en-US/docs/Web/CSS/transition Else you can also take a look at : https://developer.mozilla.org/en-US/docs/Web/CSS/animation When you want to do things more complex, you can also use https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I had the crazy idea to create a Matrix rain code with Brython ! ( why not :P )
So far I created the grid (with HTML element
table
) and have ready the generation of random charactersNow, I'm blocking to run ~simultaneously (or make like it does) the vertical stream of falling code...
Any ideas of what could I use to do so ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions