Some Fomous
Creative Designer
Jan 16, 2023844 views
CSSAdd prefixes
1.card { 2 position: relative; 3 width: 190px; 4 height: 254px; 5 background: #f00; 6 display: flex; 7 justify-content: center; 8 align-items: center; 9} 10 11.card::before { 12 content: ''; 13 position: absolute; 14 top: 0; 15 left: 0; 16 width: 100%; 17 height: 100%; 18 background: linear-gradient(315deg,#03a9f4,#ff0058); 19} 20 21.card::after { 22 content: ''; 23 position: absolute; 24 top: 0; 25 left: 0; 26 width: 100%; 27 height: 100%; 28 background: linear-gradient(315deg,#03a9f4,#ff0058); 29 filter: blur(30px); 30} 31 32.card b { 33 position: absolute; 34 inset: 6px; 35 background: rgba(0, 0, 0, 0.6); 36 z-index: 2; 37} 38 39.card img { 40 position: absolute; 41 z-index: 3; 42 scale: 0.8; 43 opacity: 0.25; 44 transition: 0.5s; 45} 46 47.card:hover img { 48 scale: 0.5; 49 opacity: 0.9; 50 transform: translateY(-70px); 51} 52 53.card .content { 54 position: absolute; 55 z-index: 3; 56 bottom: 0; 57 display: flex; 58 flex-direction: column; 59 align-items: center; 60 transform: scale(0); 61 transition: 0.5s; 62} 63 64.card:hover .content { 65 transform: scale(1); 66 bottom: 25px; 67} 68 69.content .title { 70 position: relative; 71 color: #fff; 72 font-weight: 500; 73 line-height: 1em; 74 font-size: 1em; 75 letter-spacing: 0.1em; 76 text-transform: uppercase; 77 text-align: center; 78} 79 80.content .title span { 81 font-weight: 300; 82 font-size: 0.70em; 83} 84 85.content .sci { 86 position: relative; 87 display: flex; 88 justify-content: center; 89 align-items: center; 90 gap: 8px; 91 margin-top: 5px; 92} 93 94.sci li { 95 list-style: none; 96} 97 98.sci li .fa-brands { 99 width: 14px; 100} 101 102.sci li .fa-facebook { 103 width: 10px; 104} 105 106.sci li a { 107 position: relative; 108 text-decoration: none; 109 color: rgba(255, 255, 255, 0.5); 110 background: rgba(0, 0, 0, 0.2); 111 fill: currentColor; 112 width: 30px; 113 height: 30px; 114 display: flex; 115 justify-content: center; 116 align-items: center; 117 border-radius: 4px; 118 transition: 0.5s; 119} 120 121.sci li a:hover { 122 fill: currentColor; 123 color: rgba(255, 255, 255, 1); 124} 125
HTML
1<div class="card"> 2 <b></b> 3 <div class="content"> 4 <p class="title">Some Fomous<br><span>Creative Designer</span></p> 5 <ul class="sci"> 6 <li> 7 <a href="#"> 8 <svg class="fa-brands fa-facebook" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><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> 9 </a> 10 </li> 11 12 <li> 13 <a href="#"> 14 <svg class="fa-brands fa-twitter" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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> 15 </a> 16 </li> 17 18 <li> 19 <a href="#"> 20 <svg class="fa-brands fa-linkedin-in" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg> 21 </a> 22 </li> 23 24 <li> 25 <a href="#"> 26 <svg class="fa-brands fa-instagram" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><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> 27 </a> 28 </li> 29 </ul> 30 </div> 31</div>