🎮 CSS Nintendo Switch (Box Shadow & Gradient Practice)
Tee

Tee @acupoftee

About: Impractical developer

Location:
root
Joined:
Sep 16, 2019

🎮 CSS Nintendo Switch (Box Shadow & Gradient Practice)

Publish Date: Sep 24 '20
223 33

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!

🖼 CodePen 🎥 YouTube 👩🏾‍💻 GitHub 🎀 Instagram

Comments 33 total

  • Nick Taylor
    Nick TaylorSep 24, 2020

    This looks amazing! 🔥 👏🏻

    • Tee
      TeeSep 24, 2020

      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.

  • Tatiana
    TatianaSep 24, 2020

    I have to try this.

    • Tee
      TeeSep 24, 2020

      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 🙂

  • Nándor Holozsnyák
    Nándor HolozsnyákSep 24, 2020

    Absolutely amazing! Good job. Sometimes I can not understand what CSS is capable :D

    • Tee
      TeeSep 24, 2020

      Thank you Nándor!

      Sometimes I can not understand what CSS is capable

      Same here. It's mind boggling seeing intricate and immersive visuals produced with CSS.

  • Tee
    TeeSep 24, 2020

    Thank you Naida! :D

  • Anthony Bramley
    Anthony BramleySep 24, 2020

    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!

    • Raghav Misra
      Raghav MisraSep 30, 2020

      Hey Bramley

    • Tee
      TeeOct 6, 2020

      Thank you for the kind words Anthony!

      I need a map of where you got all of that time, patience, and talent from!

      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. 🙂

  • jsdawson
    jsdawsonSep 24, 2020

    Wow, great work! The video wouldn't play (Chrome) until I added the muted="muted" attribute value to the <video>.

    • Tee
      TeeSep 25, 2020

      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 the playsinline 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:

      ...web browsers are moving towards stricter autoplay policies in order to improve the user experience, minimize incentives to install ad blockers, and reduce data consumption on expensive and/or constrained networks.

      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.

      <video id="video" muted autoplay>
      <button id="unmuteButton"></button>
      
      <script>
        unmuteButton.addEventListener('click', function() {
          video.muted = false;
        });
      </script>
      
  • Naya Willis
    Naya WillisSep 30, 2020

    You the best Dj Khaled voice

  • Naya Willis
    Naya WillisSep 30, 2020

    The gameplay is CSS too? Or just the switch?

    • squidbe
      squidbeSep 30, 2020

      The gameplay is a video (see the source code). If it were CSS, my head would explode. 🤯

      • Naya Willis
        Naya WillisSep 30, 2020

        Absolutely

      • Tee
        TeeOct 6, 2020

        That is correct, the gameplay is a video 🙂

        CSS gameplay a great idea!

  • S. Martín-Cleto
    S. Martín-CletoSep 30, 2020

    You are definitely talented, I love it! Mis dieces.

    • Tee
      TeeOct 6, 2020

      Thank you!!

  • squidbe
    squidbeSep 30, 2020

    The shadows were the hard part?! 😳

    Awesome job!

    • Tee
      TeeOct 6, 2020

      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. 🙂

  • Darryl Young
    Darryl YoungSep 30, 2020

    This is brilliant! Great work, Elisabeth.

    • Tee
      TeeOct 6, 2020

      Thank you Darryl!

  • Techtoroms
    TechtoromsDec 1, 2022

    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.

    • Luna
      LunaApr 30, 2024

      I'm so grateful for stumbling upon this article! It provided invaluable insights and practical tips. Thank you for sharing your knowledge and making a positive impact.

      AI SEO SERVICES

    • Luna
      LunaMay 3, 2024

      Looking to sell your laptop? I assure you, It's a wise choice, Selling your laptop can benefit both of you, whether you're upgrading, clearing out clutter, or just need a little extra cash. Someone is always searching for a good price on a dependable device, and yours might be just what they're looking for. Nevertheless go ahead and give yourself a little boost and give your laptop a new home!

  • Gersom Ramos
    Gersom RamosMay 21, 2024

    This is really top-notch work! It is inspiring to hear such insightful viewpoints expressed with such grace. It was really informative and nicely written. I highly suggest looking to

    SEO Services in California

    for additional fantastic resources and expert assistance.
  • React Hunt
    React HuntJul 12, 2024

    Certainly fantastic effort! It is encouraging to read such insightful and effectively presented thoughts. It was both entertaining and beautifully written. For additional resources and professional help, visit SEO Services.

  • React Hunt
    React HuntJul 24, 2024

    Unquestionably a tremendous effort! Seeing such well-reasoned and articulate ideas written out is inspiring. In addition to being delightful, the writing was exquisite. Please visit SEO Agency for more information and expert assistance.

  • React Hunt
    React HuntAug 12, 2024

    Absolutely thrilled with the content shared here! 🌟 Just celebrated my university graduation and wanted to share this exciting find. A friend introduced me to SEVlaser, and their service has been fantastic. I’m reserving time for a session as a special treat. 😊 Reading through the other positive comments here made me eager to share my own great experience. Highly recommend checking out Laser Hair Removal in Chicago. Cheers to wonderful experiences and great content!

  • Gersom Ramos
    Gersom RamosSep 6, 2024

    I’m thrilled to share my positive experience here! After reading about others' journeys, including a recent birthday celebration, I decided to explore SEVlaser for my own needs. The informative content really inspired me, and I’m grateful for the introduction to SEVlaser. It's exciting to know that reserving a session with them can be a wonderful gift too! Check out their amazing work at Laser Hair Removal in uptown-dallas.

  • Dinesh D
    Dinesh DDec 2, 2024

    Nice post on CSS. You can go for hypothecation termination in Gurgaon after loan repayment of Vehicle loan.

Add comment