Hello world. I've missed you all. I hope you all are happy, healthy, and well ❤️
After some major life changes and enormous projects, it's great to be back! I'm conjuring up on a new animation video involving the Nintendo Switch 😊 I wanted to improve my use of box-shadows, so I challenged myself to make a realistic looking Switch. My fiancé then had the splendid idea of showing gameplay on the screen--what an ideal opportunity to spread more ACNH euphoria!
It was gratifying to apply box-shadows meticulously. I look forward to sharing the Switch animation when it's done. There were some fun challenges and learning outcomes I'm itching to share with this animation video.
I'll document my process differently, with an accompanying article on DEV. Now that my schedule's subsided, I can't wait to share more content with you all.
Please don't hesitate to reach out if you have any questions 😊 Have a great day!
Top comments (25)
Woah! I need a map of where you got all of that time, patience, and talent from! What you've done with just CSS is amazing to me, especially since I tried this a while back and failed worse than you'd be able to imagine. I hope to see you do more great things with CSS like this in the near future!
Thank you for the kind words Anthony!
The patience, time, and results came from the will to try and have fun! Failure is unnerving, but it's how we view and handle failure that makes a difference. View it as a learning experience. Ask yourself why this outcome took place instead of the desired outcome. More importantly, have fun with the process! Once you learn the basics, see what you can come up with. I learned most of what I know from MDN's CSS Basics article, and MDN's CSS Concepts page. Once I got the basics, I just had fun with it. Haha people totally judged me at first, but that didn't stop me from doing it. I was learning and having fun! You know what they say, "Creativity is intelligence having fun." You can do it. Take your time with it, don't compare yourself to others, let yourself have fun with the learning process, and style away! Best of luck. 🙂
Hey Bramley
This looks amazing! 🔥 👏🏻
Thank you so much Nick! It was exciting to work on. It was a nice way to train my eye to visualize shadows with CSS too.
Absolutely amazing! Good job. Sometimes I can not understand what CSS is capable :D
Thank you Nándor!
Same here. It's mind boggling seeing intricate and immersive visuals produced with CSS.
Nintendo DS ROMS. What are they? Simply put, they're game files. But these aren't just any game files - they're the best of the best. Nintendo DS ROMS are the cream of the crop when it comes to portable gaming.
Simply impressive. Good job!
Thank you Naida! :D
The gameplay is CSS too? Or just the switch?
The gameplay is a video (see the source code). If it were CSS, my head would explode. 🤯
Absolutely
That is correct, the gameplay is a video 🙂
CSS gameplay a great idea!
I have to try this.
Totally! Box shadows are so much fun. A random object around the house is a good start, or something off of an image. Mozilla Developer Network is a handy resource for experimenting with properties as well. Have fun! Look forward to seeing what you come up with 🙂
You the best Dj Khaled voice
This is brilliant! Great work, Elisabeth.
Thank you Darryl!
The shadows were the hard part?! 😳
Awesome job!
Thank you squid! They totally were at first since I didn't use them to its full potential until now. Once I figured out how to translate the shadows from my reference as meticulously as possible with the right units, it became so much easier. 🙂
Wow, great work! The video wouldn't play (Chrome) until I added the muted="muted" attribute value to the <video>.
Thank you very much! Thank you for sharing the bug as well. I just patched it on CodePen with the
muted
attribute. The audio worked when I added theplaysinline
attribute (I don't feel the audio is necessary. I was just curious lol).I looked into it further. It turns out Chrome updated their autoplay policy for UX improvements:
Another interesting tidbit is Chrome uses a Media Engagement Index (MEI), which is the ratio of visits to media playback events emitted, to determine if a video should play automatically. That's why
autoplay
still works on sites like YouTube, Instagram, etc. Pretty neat!I'll add this snippet in the code so that ACNH fans can enjoy the intro audio if they wish.
You are definitely talented, I love it! Mis dieces.
Thank you!!