Card Flip Iframe - 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>Card Flip Iframe</title> <style> body { font-family: 'Arial', sans-serif; background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; perspective: 1000px; } .iframe-container { position: relative; width: 80%; height: 70%; border-radius: 15px; overflow: hidden; transition: transform 1s; transform-style: preserve-3d; } .iframe-container:hover { transform: rotateY(180deg); } .iframe-front, .iframe-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 15px; } .iframe-front { background: #fff; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 8px rgba(0,0,0,0.2); } .iframe-back { background: #ffeb3b; color: #000; display: flex; justify-content: center; align-items: center; transform: rotateY(180deg); } iframe { width: 90%; height: 90%; border: none; border-radius: 10px; } </style> </head> <body> <div class="iframe-container"> <div class="iframe-front"> <iframe src="https://www.example.com" title="Example Iframe"></iframe> </div> <div class="iframe-back"> <h1>Welcome to the Back Side!</h1> </div> </div> </body> </html>