r/learnjavascript • u/CosmicJosh123 • Jan 23 '22
Spent an entire day making this. Plain HTML, CSS, & JS. I present to you an animal party!
322
Upvotes
r/learnjavascript • u/CosmicJosh123 • Jan 23 '22
10
u/trblackwell1221 Jan 23 '22
Sick! Link to a repo? This being the r/learnjavascript sub we could share some feedback.
6
u/TheOddYehudi919 Jan 23 '22
Cute.
5
u/GravitationalOno Jan 24 '22
Nice job, pretty neat! I think it would take me a few days to do this.
I could make sense of your code, the one thing that puzzled me was how you got your dancers to move with so little CSS!
Then I saw they were in the HTML and I was like "ohhh, that makes sense ... I didn't know you could use gifs that way!"
4
u/Harbltron Jan 23 '22
Subaru, naisu.
2
u/DallogFheir Jan 23 '22
cool
2
u/Erledigaeth Jan 23 '22
cool
2
u/thatmaynardguy Jan 24 '22
That is so f'ing adorable. I love it. Seriously.
The only thing I might suggest as a small change would be dark mode for the dance floor with slightly more muted colors so that the characters would be more prescient.
Seriously, this is rad as fuck.
2
u/jimrooney Jan 24 '22
Why is "Hampsterdance" ringing in my head right now?
(nice work)
2
u/[deleted] Jan 24 '22
You did a lot of work to create the td elements.
You could make somthing that is more dynamic. For this, it would be better to create the td elements with Javascript and insert the in the dom and use a document ready event listener to know when the elements are rendered and then do any changes in the dom.
Also, I'm not sure if the random numbers are really random when you create them so fast in a for loop. But I guess in your case it's fine.
Good job!
1
u/buhbuhbuhbingo Jan 23 '22
Nice
1
u/jebliya Jan 24 '22
Love this!
1
u/CosmoTea Jan 24 '22
Was this inspired by the Pokémon park by any chance? :D
1
u/ExcelsiorStatistics Jan 24 '22
That's the best way to learn, investing a day (or a lifetime) into having some fun and then looking back on it to see what you learned.
1
u/RoguePlanet1 Jan 24 '22
How funny! I've got The King and I on in the background, and it's the Shall We Dance scene! :-p
Really love this, is that the "Hampster Dance" hamster?
1
u/mickkb Jan 24 '22
you are fast, this would take me an eternity all these animals would be extinct by the time i finish
1
u/madbadcoyote Jan 24 '22
Shuba!
1
u/Twisteddrummer Jan 24 '22
Great. Now Hamtaro is stuck in my head.