Card by GHgharsh11032000
#e8e8e8
1.card { 2 position: relative; 3 display: flex; 4 align-items: center; 5 justify-content: center; 6 width: 320px; 7 padding: 2px; 8 border-radius: 24px; 9 overflow: hidden; 10 line-height: 1.6; 11 transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); 12} 13 14.content { 15 display: flex; 16 flex-direction: column; 17 align-items: flex-start; 18 gap: 24px; 19 padding: 34px; 20 border-radius: 22px; 21 color: #ffffff; 22 overflow: hidden; 23 background: #ffffff; 24 transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); 25} 26 27.content .heading { 28 font-weight: 700; 29 font-size: 36px; 30 line-height: 1.3; 31 z-index: 1; 32 transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); 33} 34 35.content .para { 36 z-index: 1; 37 opacity: 0.8; 38 font-size: 18px; 39 transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); 40} 41 42.card::before { 43 content: ""; 44 position: absolute; 45 height: 160%; 46 width: 160%; 47 border-radius: inherit; 48 background: #0a3cff; 49 background: linear-gradient(to right, #0a3cff, #0a3cff); 50 transform-origin: center; 51 animation: moving 4.8s linear infinite paused; 52 transition: all 0.88s cubic-bezier(0.23, 1, 0.32, 1); 53} 54 55.card:hover::before { 56 animation-play-state: running; 57 z-index: -1; 58 width: 20%; 59} 60 61.card:hover .content .heading, 62.card:hover .content .para { 63 color: #000000; 64} 65 66.card:hover { 67 box-shadow: 0rem 6px 13px rgba(10, 60, 255, 0.1), 68 0rem 24px 24px rgba(10, 60, 255, 0.09), 69 0rem 55px 33px rgba(10, 60, 255, 0.05), 70 0rem 97px 39px rgba(10, 60, 255, 0.01), 0rem 152px 43px rgba(10, 60, 255, 0); 71 scale: 1.05; 72 color: #000000; 73} 74 75@keyframes moving { 76 0% { 77 transform: rotate(0); 78 } 79 80 100% { 81 transform: rotate(360deg); 82 } 83} 84
2.2K views
MIT License