Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

room--homepage

calvinvin•1,200
@calvinvin
A solution to the Room homepage challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I used :target pseudo-class to switch slides, just for fun and there is an additional benefit: when sharing url, the displaying slide can be specified. But maybe there are some performance issues due to reloading and not prefetching?

What specific areas of your project would you like help with?

I cannot use {transition: fill 0.15s ease;} to transit the <svg class="shop-now__arrow-svg"> element's fill color on hover.

I did some search and find it might be due to the <svg> inside <a>. I tried the approaches I found but none of them works.

Anyone can help me with this?

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 calvinvin'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