Ribbon Button - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Ribbon Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f2f5; margin: 0; } .ribbon-button { position: relative; padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: linear-gradient(45deg, #ff5722, #e91e63); border: none; border-radius: 30px; cursor: pointer; overflow: hidden; outline: none; transition: all 0.3s ease; } .ribbon-button::before { content: ''; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; background: #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } .ribbon-button::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 20px; height: 20px; background: #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } .ribbon-button span { position: relative; z-index: 1; } .ribbon-button:hover { transform: scale(1.05); background: linear-gradient(45deg, #e91e63, #ff5722); } </style> </head> <body> <button type="button" class="ribbon-button"> <span>Ribbon Style</span> </button> </body> </html>