Elegant Glow 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>Elegant Glow 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: #222; margin: 0; } .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; border-radius: 50%; background: #444; color: #fff; text-decoration: none; font-size: 1.2em; transition: all 0.3s; position: relative; box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); } .pagination a:hover { background: #666; box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); color: #fff; transform: translateY(-3px); } .pagination a.active { background: #f39c12; color: #fff; box-shadow: 0 0 30px rgba(243, 156, 18, 0.6); } </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>