Back
Card
1<!-- From Uiverse.io by Praashoo7 --> 2<div class="main"> 3 <div class="card"> 4 <div class="fl"> 5 <div class="fullscreen"> 6 <svg class="fullscreen_svg" viewBox="0 0 100 100"><path d="M3.563-.004a3.573 3.573 0 0 0-3.527 4.09l-.004-.02v28.141c0 1.973 1.602 3.57 3.57 3.57s3.57-1.598 3.57-3.57V12.218v.004l22.461 22.461a3.571 3.571 0 0 0 6.093-2.527c0-.988-.398-1.879-1.047-2.523L12.218 7.172h19.989c1.973 0 3.57-1.602 3.57-3.57s-1.598-3.57-3.57-3.57H4.035a3.008 3.008 0 0 0-.473-.035zM96.333 0l-.398.035.02-.004h-28.16a3.569 3.569 0 0 0-3.57 3.57 3.569 3.569 0 0 0 3.57 3.57h19.989L65.323 29.632a3.555 3.555 0 0 0-1.047 2.523 3.571 3.571 0 0 0 6.093 2.527L92.83 12.221v19.985a3.569 3.569 0 0 0 3.57 3.57 3.569 3.569 0 0 0 3.57-3.57V4.034v.004a3.569 3.569 0 0 0-3.539-4.043l-.105.004zM3.548 64.23A3.573 3.573 0 0 0 .029 67.8v28.626-.004l.016.305-.004-.016.004.059v-.012l.039.289-.004-.023.023.121-.004-.023c.074.348.191.656.34.938l-.008-.02.055.098-.008-.02.148.242-.008-.012.055.082-.008-.012c.199.285.43.531.688.742l.008.008.031.027.004.004c.582.461 1.32.742 2.121.762h.004l.078.004h28.61a3.569 3.569 0 0 0 3.57-3.57 3.569 3.569 0 0 0-3.57-3.57H12.224l22.461-22.461a3.569 3.569 0 0 0-2.492-6.125l-.105.004h.008a3.562 3.562 0 0 0-2.453 1.074L7.182 87.778V67.793a3.571 3.571 0 0 0-3.57-3.57h-.055.004zm92.805 0a3.573 3.573 0 0 0-3.519 3.57v19.993-.004L70.373 65.328a3.553 3.553 0 0 0-2.559-1.082h-.004a3.573 3.573 0 0 0-3.566 3.57c0 1.004.414 1.91 1.082 2.555l22.461 22.461H67.802a3.57 3.57 0 1 0 0 7.14h28.606c.375 0 .742-.059 1.082-.168l-.023.008.027-.012-.02.008.352-.129-.023.008.039-.02-.02.008.32-.156-.02.008.023-.016-.008.008c.184-.102.34-.207.488-.32l-.008.008.137-.113-.008.004.223-.211.008-.008c.156-.164.301-.34.422-.535l.008-.016-.008.016.008-.02.164-.285.008-.02-.008.016.008-.02c.098-.188.184-.406.246-.633l.008-.023-.004.008.008-.023a3.44 3.44 0 0 0 .121-.852v-.004l.004-.078V67.804a3.569 3.569 0 0 0-3.57-3.57h-.055.004z"></path></svg> 7 </div> 8 </div> 9 <div class="card_content"> 10 <button>Code to Infinity!</button> 11 </div> 12 <div class="card_back"></div> 13 </div> 14 <div class="data"> 15 <div class="img"> 16 <svg viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg"> 17 <g stroke-linecap="butt" fill="none" stroke-width="2.00"> 18 <path d="M 14.06 0.00 19 Q 13.33 4.09 13.93 7.52 20 A 1.04 1.02 -78.7 0 0 14.37 8.19 21 L 32.87 20.19" stroke="#59afb1"></path> 22 <path d="M 32.87 20.19 23 L 42.25 26.79" stroke="#4fa6a8"></path> 24 <path d="M 42.25 26.79 25 C 41.40 28.26 24.14 34.92 21.32 36.20" stroke="#69cbc0"></path> 26 <path d="M 21.32 36.20 27 Q 15.81 38.21 11.00 41.21" stroke="#6fcdbb"></path> 28 <path d="M 11.00 41.21 29 L 9.75 40.96" stroke="#5ec8ab"></path> 30 <path d="M 9.75 40.96 31 Q 5.99 37.71 1.71 35.19 32 A 1.00 1.00 0.0 0 0 0.22 35.85 33 L 0.00 36.94" stroke="#5cae9e"></path> 34 <path d="M 79.95 6.12 35 L 62.46 11.32" stroke="#3190a6"></path> 36 <path d="M 62.46 11.32 37 Q 47.42 14.67 32.87 20.19" stroke="#3a96a3"></path> 38 <path d="M 80.00 11.06 39 L 64.50 17.46" stroke="#22a3be"></path> 40 <path d="M 64.50 17.46 41 L 62.46 11.32" stroke="#28879d"></path> 42 <path d="M 64.50 17.46 43 L 43.00 26.96" stroke="#2ba9bb"></path> 44 <path d="M 43.00 26.96 45 L 42.25 26.79" stroke="#4ab2b2"></path> 46 <path d="M 80.00 52.31 47 Q 71.64 45.91 62.46 40.67" stroke="#45ced3"></path> 48 <path d="M 62.46 40.67 49 Q 62.43 36.88 58.50 36.79" stroke="#13636e"></path> 50 <path d="M 58.50 36.79 51 Q 50.07 32.95 43.00 26.96" stroke="#45ced3"></path> 52 <path d="M 58.50 36.79 53 Q 55.85 40.04 56.86 44.07 54 C 57.53 46.71 60.02 47.68 61.77 45.19 55 Q 61.91 44.99 61.94 44.74 56 L 62.46 40.67" stroke="#326b65"></path> 57 <path d="M 40.81 79.86 58 Q 46.22 74.94 52.34 70.94 59 A 1.00 1.00 0.0 0 0 52.39 69.30 60 Q 44.74 63.65 43.10 62.62 61 Q 34.11 56.98 32.50 55.79" stroke="#59d4b5"></path> 62 <path d="M 32.50 55.79 63 C 36.74 55.42 30.64 48.79 29.79 47.81 64 C 27.54 45.21 26.34 42.09 24.05 39.44 65 Q 22.66 37.82 21.32 36.20" stroke="#6ad8c5"></path> 66 <path d="M 48.75 39.07 67 A 2.30 2.30 0.0 0 0 46.45 36.77 68 L 46.05 36.77 69 A 2.30 2.30 0.0 0 0 43.75 39.07 70 L 43.75 44.21 71 A 2.30 2.30 0.0 0 0 46.05 46.51 72 L 46.45 46.51 73 A 2.30 2.30 0.0 0 0 48.75 44.21 74 L 48.75 39.07" stroke="#326b65"></path> 75 <path d="M 58.63 54.41 76 C 54.90 57.18 50.72 56.87 46.91 54.39 77 A 1.00 0.99 51.9 0 0 46.04 54.28 78 C 42.37 55.52 43.88 58.13 46.28 59.41 79 Q 53.38 63.20 60.15 58.94 80 C 62.54 57.43 62.47 54.80 59.41 54.23 81 A 1.00 1.00 0.0 0 0 58.63 54.41" stroke="#326b65"></path> 82 <path d="M 9.75 40.96 83 Q 5.15 43.50 0.05 44.46" stroke="#4bb793"></path> 84 <path d="M 32.50 55.79 85 L 11.00 41.21" stroke="#5fd6b0"></path> 86 <path d="M 11.19 80.00 87 Q 12.51 79.61 11.57 78.67 88 Q 5.99 73.11 1.70 65.70 89 C 1.28 64.97 0.74 64.76 0.00 65.19" stroke="#48d08e"></path> 90 </g> 91 <path d="M 0.00 0.00 92 L 14.06 0.00 93 Q 13.33 4.09 13.93 7.52 94 A 1.04 1.02 -78.7 0 0 14.37 8.19 95 L 32.87 20.19 96 L 42.25 26.79 97 C 41.40 28.26 24.14 34.92 21.32 36.20 98 Q 15.81 38.21 11.00 41.21 99 L 9.75 40.96100 Q 5.99 37.71 1.71 35.19101 A 1.00 1.00 0.0 0 0 0.22 35.85102 L 0.00 36.94103 L 0.00 0.00104 Z" fill="#6ebfb6"></path>105 <path d="M 14.06 0.00106 L 80.00 0.00107 L 79.95 6.12108 L 62.46 11.32109 Q 47.42 14.67 32.87 20.19110 L 14.37 8.19111 A 1.04 1.02 -78.7 0 1 13.93 7.52112 Q 13.33 4.09 14.06 0.00113 Z" fill="#439eac"></path>114 <path d="M 79.95 6.12115 L 80.00 11.06116 L 64.50 17.46117 L 62.46 11.32118 L 79.95 6.12119 Z" fill="#1f81a0"></path>120 <path d="M 62.46 11.32121 L 64.50 17.46122 L 43.00 26.96123 L 42.25 26.79124 L 32.87 20.19125 Q 47.42 14.67 62.46 11.32126 Z" fill="#308d99"></path>127 <path d="M 80.00 11.06128 L 80.00 52.31129 Q 71.64 45.91 62.46 40.67130 Q 62.43 36.88 58.50 36.79131 Q 50.07 32.95 43.00 26.96132 L 64.50 17.46133 L 80.00 11.06134 Z" fill="#25c5dc"></path>135 <path d="M 42.25 26.79136 L 43.00 26.96137 Q 50.07 32.95 58.50 36.79138 Q 55.85 40.04 56.86 44.07139 C 57.53 46.71 60.02 47.68 61.77 45.19140 Q 61.91 44.99 61.94 44.74141 L 62.46 40.67142 Q 71.64 45.91 80.00 52.31143 L 80.00 80.00144 L 40.81 79.86145 Q 46.22 74.94 52.34 70.94146 A 1.00 1.00 0.0 0 0 52.39 69.30147 Q 44.74 63.65 43.10 62.62148 Q 34.11 56.98 32.50 55.79149 C 36.74 55.42 30.64 48.79 29.79 47.81150 C 27.54 45.21 26.34 42.09 24.05 39.44151 Q 22.66 37.82 21.32 36.20152 C 24.14 34.92 41.40 28.26 42.25 26.79153 Z154 M 48.75 39.07155 A 2.30 2.30 0.0 0 0 46.45 36.77156 L 46.05 36.77157 A 2.30 2.30 0.0 0 0 43.75 39.07158 L 43.75 44.21159 A 2.30 2.30 0.0 0 0 46.05 46.51160 L 46.45 46.51161 A 2.30 2.30 0.0 0 0 48.75 44.21162 L 48.75 39.07163 Z164 M 58.63 54.41165 C 54.90 57.18 50.72 56.87 46.91 54.39166 A 1.00 0.99 51.9 0 0 46.04 54.28167 C 42.37 55.52 43.88 58.13 46.28 59.41168 Q 53.38 63.20 60.15 58.94169 C 62.54 57.43 62.47 54.80 59.41 54.23170 A 1.00 1.00 0.0 0 0 58.63 54.41171 Z" fill="#64d6ca"></path>172 <path d="M 9.75 40.96173 Q 5.15 43.50 0.05 44.46174 L 0.00 36.94175 L 0.22 35.85176 A 1.00 1.00 0.0 0 1 1.71 35.19177 Q 5.99 37.71 9.75 40.96178 Z" fill="#499c85"></path>179 <path d="M 21.32 36.20180 Q 22.66 37.82 24.05 39.44181 C 26.34 42.09 27.54 45.21 29.79 47.81182 C 30.64 48.79 36.74 55.42 32.50 55.79183 L 11.00 41.21184 Q 15.81 38.21 21.32 36.20185 Z" fill="#70dac0"></path>186 <rect rx="2.30" height="9.74" width="5.00" y="36.77" x="43.75" fill="#000000"></rect>187 <path d="M 58.50 36.79188 Q 62.43 36.88 62.46 40.67189 L 61.94 44.74190 Q 61.91 44.99 61.77 45.19191 C 60.02 47.68 57.53 46.71 56.86 44.07192 Q 55.85 40.04 58.50 36.79193 Z" fill="#000000"></path>194 <path d="M 9.75 40.96195 L 11.00 41.21196 L 32.50 55.79197 Q 34.11 56.98 43.10 62.62198 Q 44.74 63.65 52.39 69.30199 A 1.00 1.00 0.0 0 1 52.34 70.94200 Q 46.22 74.94 40.81 79.86201 L 11.19 80.00202 Q 12.51 79.61 11.57 78.67203 Q 5.99 73.11 1.70 65.70204 C 1.28 64.97 0.74 64.76 0.00 65.19205 L 0.05 44.46206 Q 5.15 43.50 9.75 40.96207 Z" fill="#4dd1a0"></path>208 <path d="M 46.91 54.39209 C 50.72 56.87 54.90 57.18 58.63 54.41210 A 1.00 1.00 0.0 0 1 59.41 54.23211 C 62.47 54.80 62.54 57.43 60.15 58.94212 Q 53.38 63.20 46.28 59.41213 C 43.88 58.13 42.37 55.52 46.04 54.28214 A 1.00 0.99 51.9 0 1 46.91 54.39215 Z" fill="#000000"></path>216 <path d="M 11.19 80.00217 L 0.00 80.00218 L 0.00 65.19219 C 0.74 64.76 1.28 64.97 1.70 65.70220 Q 5.99 73.11 11.57 78.67221 Q 12.51 79.61 11.19 80.00222 Z" fill="#43ce7c"></path>223 </svg>224 </div>225 <div class="text">226 <div class="text_m">CSS Gradient Button</div>227 <div class="text_s">Praashoo7</div>228 </div>229 </div>230 <div class="btns">231 <div class="likes">232 <svg viewBox="-2 0 105 92" class="likes_svg"><path d="M85.24 2.67C72.29-3.08 55.75 2.67 50 14.9 44.25 2 27-3.8 14.76 2.67 1.1 9.14-5.37 25 5.42 44.38 13.33 58 27 68.11 50 86.81 73.73 68.11 87.39 58 94.58 44.38c10.79-18.7 4.32-35.24-9.34-41.71Z"></path></svg><span class="likes_text">22</span>233 </div>234 <div class="comments">235 <svg title="Comment" viewBox="-405.9 238 56.3 54.8" class="comments_svg"><path d="M-391 291.4c0 1.5 1.2 1.7 1.9 1.2 1.8-1.6 15.9-14.6 15.9-14.6h19.3c3.8 0 4.4-.8 4.4-4.5v-31.1c0-3.7-.8-4.5-4.4-4.5h-47.4c-3.6 0-4.4.9-4.4 4.5v31.1c0 3.7.7 4.4 4.4 4.4h10.4v13.5z"></path></svg><span class="comments_text">12</span>236 </div>237 <div class="views">238 <svg title="Views" viewBox="0 0 30.5 16.5" class="views_svg"><path d="M15.3 0C8.9 0 3.3 3.3 0 8.3c3.3 5 8.9 8.3 15.3 8.3s12-3.3 15.3-8.3C27.3 3.3 21.7 0 15.3 0zm0 14.5c-3.4 0-6.2-2.8-6.2-6.2C9 4.8 11.8 2 15.3 2c3.4 0 6.2 2.8 6.2 6.2 0 3.5-2.8 6.3-6.2 6.3z"></path></svg><span class="views_text">332</span>239 </div>240 </div>241</div>
1/* From Uiverse.io by Praashoo7 */ 2/* CodePen Card */ 3 4.card { 5 width: 15em; 6 height: 10em; 7 background: linear-gradient(270deg, #ce68d9, #45c6db, #45db79); 8 background-size: 800% 800%; 9 -webkit-animation: AnimationName 3s ease infinite; 10 -moz-animation: AnimationName 3s ease infinite; 11 animation: AnimationName 3s ease infinite; 12 transition: .4s ease-in-out; 13 border-radius: 7px; 14 cursor: pointer; 15} 16 17.fl { 18 display: flex; 19 justify-content: flex-end; 20 opacity: 0; 21 transition: .2s ease-in-out; 22} 23 24.fl:hover .fullscreen { 25 scale: 1.2; 26} 27 28.fl:hover .fullscreen_svg { 29 fill: white; 30} 31 32.fullscreen { 33 width: 1.5em; 34 height: 1.5em; 35 border-radius: 5px; 36 background-color: #727890; 37 margin: 1em; 38 margin-right: 0.5em; 39 display: flex; 40 align-items: center; 41 justify-content: center; 42 transition: .2s ease-in-out; 43 box-shadow: 2px 2px 6px rgba(0,0,0,.4); 44} 45 46.fullscreen_svg { 47 width: 15px; 48 height: 15px; 49 fill: rgb(177, 176, 176); 50 transition: .2s ease-in-out; 51} 52 53.card_back { 54 position: absolute; 55 width: 15em; 56 height: 13em; 57 background-color: rgba(30, 31, 38, 0.575); 58 border-radius: 7px; 59 margin-top: -4.7em; 60 margin-left: 0.7em; 61 transition: .2s ease-in-out; 62 z-index: -1; 63} 64 65.main:hover .card_back { 66 margin-top: -5.9em; 67 margin-left: 0em; 68 scale: 1.1; 69 height: 15.25em; 70 cursor: pointer; 71} 72 73.main:hover .fl { 74 opacity: 1; 75 cursor: pointer; 76 margin-right: 0.5em; 77} 78 79.data { 80 display: flex; 81 flex-direction: row; 82 margin-top: 1em; 83} 84 85.img { 86 width: 2.25em; 87 height: 2.25em; 88 background-color: #252525; 89 border-radius: 5px; 90 overflow: hidden; 91} 92 93.text { 94 display: flex; 95 justify-content: center; 96 flex-direction: column; 97 margin-left: 0.5em; 98 font-family: Montserrat; 99 color: white;100}101 102.text_m {103 font-weight: bold;104 font-size: 0.9em;105}106 107.text_s {108 font-size: 0.7em;109}110 111.btns {112 display: flex;113 gap: 0.5em;114 transition: .2s ease-in-out;115}116 117.likes {118 display: flex;119 align-items: center;120 justify-content: center;121 width: 2.5em;122 height: 1.4em;123 border-radius: 4px;124 margin-top: -0.5em;125 opacity: 0;126 background-color: #444857;127 transition: .2s ease-in-out;128}129 130.likes_text {131 font-family: Montserrat;132 font-size: 0.8em;133 margin-left: 0.25em;134 color: white;135}136 137.likes_svg {138 width: 12px;139 height: 12px;140 fill: white;141}142 143.likes:hover {144 background-color: #5A5F73;145 cursor: pointer;146}147 148.comments {149 display: flex;150 align-items: center;151 justify-content: center;152 width: 2.5em;153 height: 1.4em;154 border-radius: 4px;155 margin-top: -0.5em;156 opacity: 0;157 background-color: #444857;158 transition: .24s ease-in-out;159}160 161.comments_text {162 font-family: Montserrat;163 font-size: 0.8em;164 margin-left: 0.25em;165 color: white;166}167 168.comments_svg {169 width: 12px;170 height: 12px;171 fill: white;172}173 174.comments:hover {175 background-color: #5A5F73;176 cursor: pointer;177}178 179.views {180 display: flex;181 align-items: center;182 justify-content: center;183 width: 3em;184 height: 1.4em;185 border-radius: 4px;186 margin-top: -0.5em;187 opacity: 0;188 background-color: #444857;189 transition: .28s ease-in-out;190}191 192.views_text {193 font-family: Montserrat;194 font-size: 0.8em;195 margin-left: 0.25em;196 color: white;197}198 199.views_svg {200 width: 12px;201 height: 12px;202 fill: white;203}204 205.views:hover {206 background-color: #5A5F73;207 cursor: pointer;208}209 210.main:hover .likes {211 margin-top: 0.5em;212 opacity: 1;213}214 215.main:hover .comments {216 margin-top: 0.5em;217 opacity: 1;218}219 220.main:hover .views {221 margin-top: 0.5em;222 opacity: 1;223}224 225 226 227/* The Main Switch */228 229.card_content {230 display: flex;231 align-items: center;232 justify-content: center;233}234 235button {236 padding: 0.8em;237 width: 14em;238 border-radius: 10px;239 font-family: Montserrat;240 font-size: 0.8em;241 align-self: center;242 outline: none;243 font-weight: bold;244 border: 1px solid white;245 background-color: transparent;246 color: white;247 transition: .4s ease-in-out;248}249 250button::after {251 content: "(Hold Me)";252 opacity: 0;253 position: absolute;254}255 256button::before {257 content: "∞";258 font-size: 3.5em;259 position: absolute;260 opacity: 0;261 left: 1.6em;262 top: -0.36em;263 transition: .4s ease-in-out;264}265 266button:hover {267 cursor: pointer;268 color: black;269 background: rgba(255, 255, 255, 0.2);270 border-radius: 15px;271 box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);272 backdrop-filter: blur(5px);273 -webkit-backdrop-filter: blur(5px);274 border: 1px solid rgba(255, 255, 255, 0.3);275}276 277button:hover::after {278 position: relative;279 opacity: 1;280 font-size: 0.7em;281}282 283@keyframes AnimationName {284 0% {285 background-position: 0% 50%286 }287 288 50% {289 background-position: 100% 50%290 }291 292 100% {293 background-position: 0% 50%294 }295}296 297button:active {298 scale: 1.1;299 opacity: 1;300 color: transparent;301 background: linear-gradient(90deg, #ce68d9, #45c6db, #45db79, #9f45b0, #e54ed0, #ffe4f2);302 background-size: 800% 800%;303 -webkit-animation: AnimationName 1s ease infinite;304 -moz-animation: AnimationName 1s ease infinite;305 animation: AnimationName 1s ease infinite;306}307 308button:active::before {309 color: white;310 opacity: 1;311}
MIT License