212 views
1.card { 2 width: 11.875em; 3 height: 15.875em; 4 background: linear-gradient(135deg, #1afbf0, #da00ff); 5 background-position: center; 6 background-size: cover; 7 background-repeat: no-repeat; 8} 9 10.box { 11 width: 100%; 12 height: 100%; 13 background-color: rgba(255, 255, 255, 0.074); 14 -webkit-backdrop-filter: blur(20px); 15 backdrop-filter: blur(20px); 16} 17 18.content { 19 display: flex; 20 flex-direction: column; 21 justify-content: space-between; 22 width: 100%; 23 height: 100%; 24 padding: 10px; 25 background-position: center; 26 background-size: cover; 27 background-repeat: no-repeat; 28 clip-path: polygon(54% 27%, 100% 50%, 100% 100%, 51% 74%, 0 50%, 0% 0%); 29 transition: 0.5s; 30 line-height: 1.2; 31} 32 33.card-title { 34 width: 100%; 35 font-weight: bold; 36 color: white; 37 display: block; 38 padding-top: 6.3em; 39 font-size: 1.2em; 40 transform: rotate(34deg); 41 transition: 0.5s; 42 margin-left: 25%; 43} 44 45.text { 46 color: white; 47 opacity: 0; 48 transition: 0.5s; 49} 50 51.card:hover .content { 52 clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 0 50%, 0% 0%); 53} 54 55.card:hover .card-title { 56 padding-top: 1em; 57 margin-left: 0%; 58 transform: rotate(0deg); 59} 60 61.card:hover .text { 62 opacity: 1; 63}
MIT License