Design comparison
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
- @amalkarimPosted almost 2 years ago
Hi Roy. To make transition between show/hide the
.share-components
, we can't usedisplay: none;
anddisplay: flex
, becausedisplay
property is not animatable. Change.hidden
style fromdisplay: 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 helpful1 - @arkaroy135Posted almost 2 years ago
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 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