Glass Card Design
Home
Snippets
Glass Card Design
HTML
CSS
JS
<div class="glass-card"> <h2>Learning Axis</h2> <p>Master the Web with style — HTML, CSS, JavaScript & more.</p> <button>Get Started</button> </div>
body { margin: 0; height: 100vh; background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); display: flex; justify-content: center; align-items: center; font-family: 'Segoe UI', sans-serif; } .glass-card { width: 320px; padding: 30px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.2); color: white; text-align: center; } .glass-card h2 { margin: 0 0 10px; font-size: 24px; } .glass-card p { font-size: 15px; opacity: 0.9; } .glass-card button { margin-top: 20px; padding: 10px 20px; border: none; border-radius: 50px; background-color: #00f2fe; background-image: linear-gradient(45deg, #4facfe, #00f2fe); color: #fff; font-weight: bold; cursor: pointer; } .glass-card button:hover { opacity: 0.85; }
//javascript
Ad #1
Ad #2
Scroll to Top