
Design comparison
Solution retrospective
Leave me some suggest for improvement ^^
Community feedback
- @A-amonPosted over 3 years ago
Hello! Great work~
I have a few suggestions:
-
There seems to be some horizontal overflowing to the right due to the before selector's image. Try using background-image for it.
-
Instead of setting style directly in JS, add/remove or toggle class name instead.
Having two separate spans for annual and monthly value each is a good idea. I could use some changes to my code using your way. You can try checking out mine on how to use CSS combinators to make it work without JS (Don't mind the duplicated lines of HTML. I will fix that based on your idea soon :) )
https://www.frontendmentor.io/solutions/html-scss-toggle-without-js-g-y16l3KD
1 -
- @Blazing-MikePosted over 3 years ago
Everything works fine 🌝... Great job.
I tried reading through the code, it seems you used some ternary operators and some modern JavaScript syntax....
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord