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

Submitted

Article Preview Component

Roy 600

@arkaroy135

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any suggestions will be welcomed.

I had great fun building this. I need some help in animations though, haven't added any animation yet, but once I get the necessary help from the community I will add the animations.

Community feedback

@amalkarim

Posted

Hi Roy. To make transition between show/hide the .share-components, we can't use display: none; and display: flex, because display property is not animatable. Change .hidden style from display: none; to this:

.container .card .article-description .profile .hidden {
    scale: 0;
}

Then add this two declarations:

.container .card .article-description .profile .share-components {
    ....
    scale: 1;
    transition: scale 0.3s;
}

You can use other methods to show/hide, like using position (especially in mobile view) to make slide up/slide down effect.

Hope this helps. Happy coding!

Marked as helpful

1
Roy 600

@arkaroy135

Posted

Thank you for the suggestions. I added the animation effects according to your suggestions. Kindly check it once. And I still need to fix the button's background and the SVG's color when clicked. Can you please help me with that too ?

0

Please log in to post a comment

Log in with GitHub
Discord logo

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