Design comparison
Solution retrospective
Hi, it's my second project and I'd love to get some recommendations about image hover effect, because it wasn't that easy and I'm not sure if my method is correct.
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hello @Anq92,
I have some suggestions regarding your solution:
-
For any decorative images, each img tag should have empty
alt=""
*as you did**andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images in(icon-view, icon-ethereum, icon-clock
). -
I would use pseudo-elements to change the teal bg color to a hsla. Then opacity can be changed from 0 to 1 on the pseudo element on hover as there is no reason to have the extra clutter in the html.
-
The avatar's alt shouldn't be
empty
, you can useJules Wyvern
for it. -
the link should be wrapping the main image and either have
Sr-only
text, anaria-label
oralt
text that says where that link takes you. -
So you can use
<ul>
to wrapclass="counter"
and in each<li>
there would be<img >
and <p>`` . -
No need for
<hr>
, you can useborder-top
to theclass="author "
. -
For the avatar's part , you can use
<figcaption >
and<figure>
.
Overall, your solution is good, Hopefully this feedback helps.
Marked as helpful0 -
- @denieldenPosted over 2 years ago
Hi Anna, I took some time to look at your solution and you did a great job!
There are many ways to do the hover effect on the image... how you did it is great :)
Also it would be better to use
padding
for the interior spaces of the elements incontainer
class insteadmargin
Overall you did well :)
Hope this help and happy coding!
Marked as helpful0
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