Day # 34: Rounded card



While working on a previous project that involved cards, I thought I could create a new one that had an innovative effect. Immediately I came up with an idea that consisted of a rounded div for the title of the card.

After doing some research, I found that a possible way to achieve that was by using the clip-path property, which allows you to insert a rounded profile to your divs.

This project comprised one of the most typical situations for any developer, which is to have a problem, do some research to find a solution and then implementing that solution until you accomplish your goals.


.container .card .circle {

    position: relative;

    width: 100%;

    height: 100%;

    background: rgb(1, 1, 74);

    clip-path: circle(180px at center 0);

    text-align: center;

}

 

Comments

Popular posts from this blog

Day # 19: Checkbox animation

Day # 12: Typewriter Effect

Day # 53: Icon text