111 views
CSSAdd prefixes
1.container { 2 font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 3 font-style: italic; 4 font-weight: bold; 5 display: flex; 6 margin: auto; 7 aspect-ratio: 16/9; 8 align-items: center; 9 justify-items: center; 10 justify-content: center; 11 flex-wrap: wrap; 12 flex-direction: column; 13 gap: 1em; 14} 15 16.card-container { 17 filter: drop-shadow(46px 36px 24px #4090b5) drop-shadow(-55px -40px 25px #9e30a9); 18 animation: blinkShadowsFilter 8s ease-in infinite; 19} 20 21.card-content { 22 display: grid; 23 align-content: center; 24 justify-items: center; 25 align-items: center; 26 text-align: center; 27 padding: 1em; 28 grid-template-rows: 0.1fr 0.7fr 0.25fr; 29 background-color: hsl(296, 59%, 10%); 30 width: 10em; 31 aspect-ratio: 9/16; 32 -webkit-clip-path: polygon(0 0, 85% 0, 100% 14%, 100% 60%, 92% 65%, 93% 77%, 99% 80%, 99% 90%, 89% 100%, 0 100%); 33 clip-path: polygon(0 0, 85% 0, 100% 14%, 100% 60%, 92% 65%, 93% 77%, 99% 80%, 99% 90%, 89% 100%, 0 100%); 34} 35 36.card-content::before { 37 content: ""; 38 position: absolute; 39 width: 250%; 40 aspect-ratio: 1/1; 41 transform-origin: center; 42 background: linear-gradient(to bottom, transparent, transparent, #66e0ff, #66e0ff, #e366ff, #e366ff, transparent, transparent), linear-gradient(to left, transparent, transparent, #66e0ff, #66e0ff, #e366ff, #e366ff, transparent, transparent); 43 animation: rotate 5s infinite linear; 44} 45 46.card-content::after { 47 content: ""; 48 position: absolute; 49 top: 1%; 50 left: 1%; 51 width: 98%; 52 height: 98%; 53 background: repeating-linear-gradient(to bottom, transparent 0%, rgba(64, 144, 181, 0.6) 1px, rgb(0, 0, 0) 3px, rgba(64, 144, 181, 0.3019607843) 5px, #153544 4px, transparent 0.5%), repeating-linear-gradient(to left, hsl(295, 60%, 12%) 100%, hsla(295, 60%, 12%, 0.99) 100%); 54 box-shadow: inset 0px 0px 30px 40px hsl(296, 59%, 10%); 55 -webkit-clip-path: polygon(0 0, 85% 0, 100% 14%, 100% 60%, 92% 65%, 93% 77%, 99% 80%, 99% 90%, 89% 100%, 0 100%); 56 clip-path: polygon(0 0, 85% 0, 100% 14%, 100% 60%, 92% 65%, 93% 77%, 99% 80%, 99% 90%, 89% 100%, 0 100%); 57 animation: backglitch 94ms linear infinite; 58} 59 60.card-title { 61 z-index: 80; 62 -webkit-clip-path: polygon(90% 0, 100% 100%, 0% 100%, 0% 0%); 63 clip-path: polygon(90% 0, 100% 100%, 0% 100%, 0% 0%); 64 background: linear-gradient(90deg, rgba(255, 254, 250, 0) 0%, rgba(102, 224, 255, 0.3) 27%, rgba(102, 224, 255, 0.3) 63%, rgba(255, 255, 255, 0) 100%), linear-gradient(0deg, rgba(102, 224, 255, 0.3) 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 96%, rgba(102, 224, 255, 0.3) 100%); 65 width: 98%; 66 font-size: 1.2em; 67} 68 69.title { 70 width: 100%; 71 height: 100%; 72 text-align: right; 73 position: relative; 74 z-index: 2; 75 color: hsl(192, 100%, 88%); 76 font-size: 1em; 77 transition: all ease-in-out 2s linear; 78} 79 80.card-body { 81 padding-block: 1.5em; 82 padding-inline: 1em; 83 z-index: 80; 84 display: flex; 85 gap: 1.5em; 86 flex-wrap: wrap; 87 justify-content: space-around; 88 align-items: center; 89 align-content: center; 90} 91 92.svg-card { 93 text-decoration: none; 94 color: hsl(192, 100%, 88%); 95 background: linear-gradient(90deg, transparent 0%, rgba(102, 224, 255, 0.2) 27%, rgba(102, 224, 255, 0.2) 63%, transparent 100%); 96 fill: currentColor; 97 width: 2em; 98 aspect-ratio: 1/1; 99 display: flex; 100 justify-content: center; 101 align-items: center; 102 transition: 0.5s; 103} 104 105.svg-card .face { 106 width: 0.7em; 107} 108 109.svg-card .twit { 110 width: 1em; 111} 112 113.svg-card .insta { 114 width: 1em; 115} 116 117.svg-card .whats { 118 width: 1.1em; 119} 120 121.svg-card:hover { 122 cursor: pointer; 123 color: hsl(192, 100%, 100%); 124} 125 126.card-footer { 127 padding-inline: 1em; 128} 129 130@keyframes backglitch { 131 0% { 132 box-shadow: inset 0px 20px 30px 40px hsl(296, 59%, 10%); 133 } 134 135 50% { 136 box-shadow: inset 0px -20px 30px 40px hsl(296, 59%, 10.2%); 137 } 138 139 to { 140 box-shadow: inset 0px 20px 30px 40px hsl(296, 59%, 10%); 141 } 142} 143 144@keyframes rotate { 145 0% { 146 transform: rotate(0deg) translate(-50%, 20%); 147 } 148 149 50% { 150 transform: rotate(180deg) translate(40%, 10%); 151 } 152 153 to { 154 transform: rotate(360deg) translate(-50%, 20%); 155 } 156} 157 158@keyframes blinkShadowsFilter { 159 0% { 160 filter: drop-shadow(46px 36px 28px rgba(64, 144, 181, 0.3411764706)) drop-shadow(-55px -40px 28px #9e30a9); 161 } 162 163 25% { 164 filter: drop-shadow(46px -36px 24px rgba(64, 144, 181, 0.8980392157)) drop-shadow(-55px 40px 24px #9e30a9); 165 } 166 167 50% { 168 filter: drop-shadow(46px 36px 30px rgba(64, 144, 181, 0.8980392157)) drop-shadow(-55px 40px 30px rgba(159, 48, 169, 0.2941176471)); 169 } 170 171 75% { 172 filter: drop-shadow(20px -18px 25px rgba(64, 144, 181, 0.8980392157)) drop-shadow(-20px 20px 25px rgba(159, 48, 169, 0.2941176471)); 173 } 174 175 to { 176 filter: drop-shadow(46px 36px 28px rgba(64, 144, 181, 0.3411764706)) drop-shadow(-55px -40px 28px #9e30a9); 177 } 178}/*# sourceMappingURL=style.css.map */
HTML
1<section class="container"> 2 <div class="card-container"> 3 <div class="card-content"> 4 <div class="card-title"> 5 <span class="title">TITLE</span> 6 </div> 7 <div class="card-body"> 8 <div class="svg-card"> 9 <svg viewBox="0 0 320 512" xmlns="http://www.w3.org/2000/svg" class="face"><path d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg> 10 </div> 11 <div class="svg-card"> 12 <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" class="twit"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg> 13 </div> 14 <div class="svg-card"> 15 <svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg" class="insta"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg> 16 </div> 17 <div class="svg-card"> 18 <svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg" class="whats"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"></path></svg> 19 </div> 20 </div> 21 <div class="card-footer"> 22 <span class="title">Some extra Information</span> 23 </div> 24 </div> 25 </div> 26 </section>