Loading card.css 0 → 100644 +95 −0 Original line number Diff line number Diff line *{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items:center ; min-height: 100vh; background: linear-gradient(45deg,#ffaf00,#bb02ff); background-attachment: fixed; }.container-1 { position: relative; width: 1150px; padding: 20px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; /* flex-direction: column; */ } .container-1 .card { position: relative; width: 300px; height: 420px; background:white; margin: 20px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 25px rgba(0,0,0,0.2); transform-origin: 0.5s; } .container-1:hover .card{ /* filter: blur(20px); */ transform: scale(0.9); opacity: 0.5; } .container-1 .card:hover { filter: blur(0px); transform: scale(1.1); opacity: 1; } .container-1 .card .circle{ position: relative; width:100%; height: 100%; background: black; clip-path: circle(180px at center 0); text-align: center; } .container-1 .card .circle h3 { color: white; font-size: 4.5rem; padding: 30px 0; } .container-1 .card .content { position: absolute; bottom: 10px; padding-bottom: 20px; text-align: center; } .container-1 .card .content p{ color: gray; } .container-1 .card .content a{ position: relative; display: inline-block; padding: 10px 20px; color:white; background-color: black; border-radius: 40px; text-decoration: none; margin-top: 20px; } .container-1 .card:nth-child(1) .circle, .container-1 .card:nth-child(1) .content a{ background: #ffaf00; } .container-1 .card:nth-child(2) .circle, .container-1 .card:nth-child(2) .content a { background: #da2268; } .container-1 .card:nth-child(3) .circle, .container-1 .card:nth-child(3) .content a { background: #bb02ff; } Loading
card.css 0 → 100644 +95 −0 Original line number Diff line number Diff line *{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items:center ; min-height: 100vh; background: linear-gradient(45deg,#ffaf00,#bb02ff); background-attachment: fixed; }.container-1 { position: relative; width: 1150px; padding: 20px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; /* flex-direction: column; */ } .container-1 .card { position: relative; width: 300px; height: 420px; background:white; margin: 20px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 25px rgba(0,0,0,0.2); transform-origin: 0.5s; } .container-1:hover .card{ /* filter: blur(20px); */ transform: scale(0.9); opacity: 0.5; } .container-1 .card:hover { filter: blur(0px); transform: scale(1.1); opacity: 1; } .container-1 .card .circle{ position: relative; width:100%; height: 100%; background: black; clip-path: circle(180px at center 0); text-align: center; } .container-1 .card .circle h3 { color: white; font-size: 4.5rem; padding: 30px 0; } .container-1 .card .content { position: absolute; bottom: 10px; padding-bottom: 20px; text-align: center; } .container-1 .card .content p{ color: gray; } .container-1 .card .content a{ position: relative; display: inline-block; padding: 10px 20px; color:white; background-color: black; border-radius: 40px; text-decoration: none; margin-top: 20px; } .container-1 .card:nth-child(1) .circle, .container-1 .card:nth-child(1) .content a{ background: #ffaf00; } .container-1 .card:nth-child(2) .circle, .container-1 .card:nth-child(2) .content a { background: #da2268; } .container-1 .card:nth-child(3) .circle, .container-1 .card:nth-child(3) .content a { background: #bb02ff; }