Professional 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>Professional 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: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(45deg, #6b73ff, #000dff); 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: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000dff; text-decoration: none; font-size: 1.2em; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s; position: relative; } .pagination a:hover { background: #000dff; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); } .pagination a:hover::after { content: "🚀"; position: absolute; top: -20px; animation: rocket 0.6s ease-in-out; } @keyframes rocket { 0% { transform: translateY(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } } .pagination a.active { background: #ff4766; color: #fff; } .pagination a i { margin: 0; } .pagination a i:hover { animation: shake 0.5s; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-4px); } } </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>