Flip Button - VexaX
Run Code
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>Flip Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #333; margin: 0; } .flip-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #2980b9; border: none; border-radius: 30px; cursor: pointer; outline: none; transition: all 0.3s ease; perspective: 1000px; } .flip-button:hover { animation: flip 0.6s forwards; } @keyframes flip { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } } .flip-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="flip-button"> <span>Flip</span> </button> </body> </html>