WEBLEB
Home
Editor
Login
Pro
English
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Ethereum hover card
2532
Andev.web
Open In Editor
Publish Your Code
Recommended
14 June 2024
3D Flips Card Effect
1 August 2024
Credit Card Form - VueJs
18 October 2024
Card Dashboard
HTML
Copy
Ethereum
Cryptocurrency
$2,919.87
CSS
Copy
body { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; background-color: #212121; } .container { display: flex; align-items: center; justify-content: center; height: 100vh; } .card { width: 195px; height: 285px; background: #313131; border-radius: 20px; ; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; transition: 0.2s ease-in-out; } .img { height: 30%; position: absolute; transition: 0.2s ease-in-out; z-index: 1; } .textBox { opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; transition: 0.2s ease-in-out; z-index: 2; } .textBox > .text { font-weight: bold; } .textBox > .head { font-size: 20px; } .textBox > .price { font-size: 17px; } .textBox > span { font-size: 12px; color: lightgrey; } .card:hover > .textBox { opacity: 1; } .card:hover > .img { height: 65%; filter: blur(7px); animation: anim 3s infinite; } @keyframes anim { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } } .card:hover { transform: scale(1.04) rotate(-1deg); }
JS
Copy