Close Menu
  • Cuộc sống
    • Du lịch
  • Chia sẻ kinh nghiệm
    • Lập trình
    • Arduino – Esp
    • Code WEB
    • Python
    • WordPress
  • Premium
  • Truyện
    • Ngôn tình
  • AI
Có gì hot ???

Trang báo lỗi 404

Tháng 9 15, 2025

Cat loading – Màn hình loading bằng con mèo xoay vòng

Tháng 9 15, 2025

Click me ! If you can

Tháng 9 11, 2025
Facebook X (Twitter) Instagram
  • Trang chủ
  • Về tôi..
Trending
  • Trang báo lỗi 404
  • Cat loading – Màn hình loading bằng con mèo xoay vòng
  • Click me ! If you can
  • Magic Cursor blue
  • Hai Phút Hiểu Biết: AI sẽ thay thế con người hay hỗ trợ con người trong 2025?
  • Về tôi..
  • Modern image gallery
  • Plugin: H2T Download Link – Liên kết tải file chuyên nghiệp
Facebook X (Twitter) Instagram YouTube RSS
tôi là Hải
  • Cuộc sống
    • Du lịch
  • Chia sẻ kinh nghiệm
    • Lập trình
    • Arduino – Esp
    • Code WEB
    • Python
    • WordPress
  • Premium
  • Truyện
    • Ngôn tình
  • AI
đăng nhập
tôi là Hải
Trang chủ » Click me ! If you can
Code WEB

Click me ! If you can

haileeBài của haileeTháng 9 11, 2025Không có bình luậnThời gian đọc 1 phút
Chia sẻ Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Chia sẻ
Facebook Twitter LinkedIn Pinterest Email
HTML/CSS/JS Click me !!! If you can....
Ln: —

index.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>toilahai.com</title>

    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            background-color: #000;
        }

        button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            height: 4rem;
            width: 10rem;
            font-size: 1.5rem;
            border-radius: 5px;
            border: none;
            box-shadow: 1px 1px 5px black;
            background-color: #00fffc;
        }
    </style>
</head>

<body>
    <button id='runaway-btn'>Click Me &#129315;</button>


    <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.0/anime.min.js"></script>
    <script>
        const button = document.getElementById("runaway-btn");

        const animateMove = (element, prop, pixels) =>
            anime({
                targets: element,
                [prop]: `${pixels}px`,
                easing: "easeOutCirc"
            });

        ["mouseover", "click"].forEach(function (el) {
            button.addEventListener(el, function (event) {
                const top = getRandomNumber(window.innerHeight - this.offsetHeight);
                const left = getRandomNumber(window.innerWidth - this.offsetWidth);

                animateMove(this, "left", left).play();
                animateMove(this, "top", top).play();
            });
        });

        const getRandomNumber = (num) => {
            return Math.floor(Math.random() * (num + 1));
        };

    </script>
</body>

</html>
Chia sẻ. Facebook Twitter Pinterest LinkedIn Tumblr Email
Bài trướcMagic Cursor blue
Bài tiếp theo Cat loading – Màn hình loading bằng con mèo xoay vòng
hailee
  • Website

Bài viết liên quan

Code WEB

Magic Cursor blue

Tháng 9 11, 2025
Code WEB

Modern image gallery

Tháng 7 24, 2025
Add A Comment
Leave A Reply Cancel Reply

Bài viết hàng đầu

Modern image gallery

Tháng 7 24, 2025120 Views

Về tôi..

Tháng 8 26, 202558 Views

Plugin: H2T Download Link – Liên kết tải file chuyên nghiệp

Tháng 7 24, 202557 Views

Hai Phút Hiểu Biết: AI sẽ thay thế con người hay hỗ trợ con người trong 2025?

Tháng 8 26, 202513 Views

✨ Hải Lê – Hành trình lạc lối giữa sương mù Đà Lạt ✨

Tháng 7 22, 202510 Views
Giữ liên lạc
  • Facebook
  • YouTube
  • TikTok
  • WhatsApp
  • Twitter
  • Instagram
Đánh giá mới nhất
Phổ biến nhất

Modern image gallery

Tháng 7 24, 2025120 Views

Về tôi..

Tháng 8 26, 202558 Views

Plugin: H2T Download Link – Liên kết tải file chuyên nghiệp

Tháng 7 24, 202557 Views
Lựa chọn của tôi

Trang báo lỗi 404

Tháng 9 15, 2025

Cat loading – Màn hình loading bằng con mèo xoay vòng

Tháng 9 15, 2025

Click me ! If you can

Tháng 9 11, 2025

Đăng ký cập nhật

Nhận tin tức công nghệ mới nhất từ ​​Hải về công nghệ, thiết kế và kinh nghiệm.

Facebook X (Twitter) Instagram Pinterest
  • Trang chủ
© 2025 Toilahai.com. Designed by H2T.Dev.

Type above and press Enter to search. Press Esc to cancel.

Đăng nhập hoặc Đăng ký

Chào bạn !

Đăng nhập ở dưới hoặc Đăng ký ngay.

Quên mật khẩu ?

Đăng ký ngay !

Đã đăng ký ? Login.

Mật khẩu sẽ được gửi tới bạn qua email.