#f3d1ff
1.card { 2 position: relative; 3 width: 190px; 4 height: 254px; 5 background: linear-gradient(to bottom right, #ff2ab7, #7522a1); 6 box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px; 7 z-index: 1; 8 border-radius: 21px; 9 overflow: hidden; 10} 11 12.card__content { 13 background: linear-gradient(rgba(255, 255, 255, 0.15), rgba(150, 150, 150, 0.1)); 14 z-index: 1; 15 position: absolute; 16 left: 0; 17 top: 0; 18 width: 100%; 19 height: 100%; 20 border-radius: 21px; 21 backdrop-filter: blur(35px); 22} 23 24.card .blob { 25 position: absolute; 26 z-index: -1; 27 border-radius: 5em; 28 width: 200px; 29 height: 200px; 30 animation-name: blob-animation; 31 animation-duration: 2s; 32 animation-timing-function: ease-in-out; 33 animation-iteration-count: infinite; 34} 35 36.card .blob:nth-child(1) { 37 left: -50px; 38 top: -90px; 39 background: #c52791; 40} 41 42.card .blob:nth-child(2) { 43 left: 110px; 44 top: -20px; 45 z-index: -1; 46 background: #6d1d7f; 47} 48 49.card .blob:nth-child(3) { 50 left: -40px; 51 top: 100px; 52 background: #a31c72; 53} 54 55.card .blob:nth-child(4) { 56 left: 100px; 57 top: 180px; 58 background: #4a158a; 59} 60 61@keyframes blob-animation { 62 0% { 63 transform: translate(0, 0) scale(1); 64 } 65 66 50% { 67 transform: translate(10%, 10%) scale(1.1); 68 } 69 70 100% { 71 transform: translate(0, 0) scale(1); 72 } 73}
515 views
Variation of acard
515 views
Variation of acard
Comments
MIT License