This post is saved as a draft.
#212121
1.card { 2 width: 100%; 3 max-width: 300px; 4 min-width: 200px; 5 height: 250px; 6 background-color: #292929; 7 margin: 10px; 8 border-radius: 10px; 9 box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.24); 10 border: 2px solid rgba(7, 7, 7, 0.12); 11 font-size: 16px; 12 transition: all 0.3s ease; 13 position: relative; 14 display: flex; 15 justify-content: center; 16 align-items: center; 17 flex-direction: column; 18 cursor: pointer; 19 font-family: 'Poppins', sans-serif; 20} 21 22.icon { 23 margin: 0 auto; 24 width: 100%; 25 height: 80px; 26 max-width: 80px; 27 background: linear-gradient(90deg, #7eaaff 0%, #ff48fb 40%, rgba(0, 0, 0, 0.28) 60%); 28 border-radius: 100%; 29 display: flex; 30 justify-content: center; 31 align-items: center; 32 transition: all 0.8s ease; 33 background-position: 0px; 34 background-size: 200px; 35} 36 37.icon svg { 38 fill: white; 39} 40 41.card .title { 42 width: 100%; 43 margin: 0; 44 text-align: center; 45 margin-top: 30px; 46 color: white; 47 font-weight: 600; 48 text-transform: uppercase; 49 letter-spacing: 4px; 50} 51 52.card .text { 53 width: 80%; 54 margin: 0 auto; 55 font-size: 13px; 56 text-align: center; 57 margin-top: 20px; 58 color: white; 59 font-weight: 200; 60 letter-spacing: 2px; 61 opacity: 0; 62 max-height: 0; 63 transition: all 0.3s ease; 64} 65 66.card:hover { 67 height: 270px; 68} 69 70.card:hover .text { 71 transition: all 0.3s ease; 72 opacity: 1; 73 max-height: 40px; 74} 75 76.card:hover .icon { 77 background-position: -120px; 78 transition: all 0.3s ease; 79} 80 81.card:hover .icon svg path { 82 fill: url('#gradientColor'); 83 transition: all 0.3s ease; 84}
Variation of acard
Variation of acard