@Kamasah-Dickson
Posted
You can also check the code on how I made my transition in the link below.
Marked as helpful
2nd Attempt after feedback. Fixed issues from 1st attempt.
@Kamasah-Dickson
Posted
You can also check the code on how I made my transition in the link below.
Marked as helpful
@Kamasah-Dickson
Posted
@min4899 Transitions don't work on display none u can use visibility: hidden and opacity
Transform:translateX(30px); opacity: 0;
}To {
Transform:translateX(0px); opacity: 1;
}
You can learn more about @keyframes CSS animation on YouTube
Happy coding💻👍
Marked as helpful
@Kamasah-Dickson
Posted
Your solution looks great and responsive on smaller devices. Well I suggest you add a transition to the final rating section.
Besides great job there👍 Have a nice day and a happy coding👍💻
@min4899
Posted
@Kamasah-Dickson Ty for the reply! I tried applying a transition when hiding the 1st card and showing the 2nd card, but no animation. I don't think transitions can be applied to "display: none." I'm guessing the solution is use JavaScript to create sequence of timed transitions (card 1 opacity 0 -> display none -> card 2 display -> opacity 100). Is there way to do this using purely CSS? Ty in advance.
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