Flip Columns - 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>Flip Columns</title> <style> body { font-family: 'Arial', sans-serif; background-color: #282c34; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; color: #fff; } .container { display: flex; justify-content: space-around; align-items: center; width: 80%; } .column { perspective: 1000px; flex: 1; margin: 10px; position: relative; width: 100%; height: 200px; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; transform-origin: center right; } .column:hover { transform: rotateY(-180deg); } .front, .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; } .front { background: #61dafb; } .back { background: #21a0f6; transform: rotateY(180deg); } </style> </head> <body> <div class="container"> <div class="column"> <div class="front"> <h2>Flip 1</h2> </div> <div class="back"> <h2>Back 1</h2> </div> </div> <div class="column"> <div class="front"> <h2>Flip 2</h2> </div> <div class="back"> <h2>Back 2</h2> </div> </div> <div class="column"> <div class="front"> <h2>Flip 3</h2> </div> <div class="back"> <h2>Back 3</h2> </div> </div> </div> </body> </html>