Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • @Mattvp21

    Submitted

    (Revised version)This is my first solution in a while. This one had some tricky parts and I have questions for the community.

    (Fixed)-How can I make the toggle transition smoother? I want to make the dark/light modes transition and not just switch immediately.

    (Fixed)-I struggled with the top border gradient. Is there a way to tap into the border-top-image?

    Would like opinions on the animations!

    Happy coding everybody :)

    -Matt

    haquanq 425

    @haquanq

    Posted

    Good work!, here is my answers to your questions:

    • Add a transition: to the element that will change it's properties when somthing is toggled.
    • Instead of using border: , you can use a div or span instead and style it.
    • If you don't have any kind of data relate to the value that display, you should create one and based on that to toggle DOM Element style.

    Marked as helpful

    1
  • Dcatnis 220

    @Dcatnis

    Submitted

    Hi Everyone, Just finish another chalange, please leave your comment about the code thank you

    haquanq 425

    @haquanq

    Posted

    Nice work! I personally think that dark mode should be toggled by default!

    0
  • haquanq 425

    @haquanq

    Posted

    great job but i suggest pay more attention to the design like space between each element so that it would look better ! :D

    0
  • haquanq 425

    @haquanq

    Posted

    i think most people would choose a JS library for theme toggle rather than starting from scratch.

    0