Retro Wave Pagination - 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>Retro Wave Pagination</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Courier New', Courier, monospace; display: flex; justify-content: center; align-items: center; height: 100vh; background: #1a1a1a; margin: 0; color: #00ffea; } .pagination { display: flex; list-style: none; padding: 0; } .pagination li { margin: 0 5px; } .pagination a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: #333; color: #00ffea; text-decoration: none; font-size: 1.2em; border: 2px solid #00ffea; border-radius: 50%; transition: all 0.3s; } .pagination a:hover { background: #00ffea; color: #333; } .pagination a.active { background: #00ffea; color: #333; } </style> </head> <body> <ul class="pagination"> <li><a href="#" class="prev"><i class="fas fa-chevron-left"></i></a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#" class="next"><i class="fas fa-chevron-right"></i></a></li> </ul> <script> document.querySelectorAll('.pagination a').forEach(link => { link.addEventListener('click', function(event) { event.preventDefault(); document.querySelectorAll('.pagination a').forEach(link => link.classList.remove('active')); this.classList.add('active'); }); }); </script> </body> </html>