DEV Community

Discussion on: Implementing stripe card for fun & profit

Collapse
 
codespent profile image
Patrick Hanford

Very well written, well done! As for your circle hovering dilemma, you could do something like the following for a quick solution;

.card:hover .circle {
    background: #000;
    transition: 3s;
}

This will still follow the hover of the parent element (the card) but apply styles to your child (circle). Hope that helps!