Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Advice generator with little roll animation

jmjules•100
@jmjules
A solution to the Advice generator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Working with fetch APIs nowadays seems pretty comfortable. This exercise was nice, since it was pretty fast to complete and the result is something that can be shown to friends as a complete little widget which requires no further context to work.

I thought if there is a dice it definitely is supposed to be rolled, even if the exercise didn't say so outright. It was enjoyable to find out that the dice roll animation works entirely without js. The slide in on the other hand, technically requires js since i am injecting the paragraph tag new with every dice roll and since it is a new element the css animation gets triggered.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on jmjules's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License