document.addEventListener('DOMContentLoaded', function() {
    // Create the main cursor element
    const cursor = document.createElement('div');
    cursor.style.width = '20px';
    cursor.style.height = '20px';
    cursor.style.border = '2px solid blue';
    cursor.style.borderRadius = '50%';
    cursor.style.backgroundColor = 'white';
    cursor.style.position = 'fixed';
    cursor.style.pointerEvents = 'none';
    cursor.style.zIndex = '1000';
    cursor.style.transition = 'transform 0.1s ease';

    // Append the cursor to the body

    // Create a container for the trailing dots
    const trailContainer = document.createElement('div');
    trailContainer.style.position = 'fixed';
    trailContainer.style.pointerEvents = 'none';
    trailContainer.style.zIndex = '999';

    // Function to update the cursor position
    function updateCursorPosition(event) {
        gsap.to(cursor, {
            x: event.clientX - cursor.clientWidth / 2,
            y: event.clientY - cursor.clientHeight / 2,
            ease: "power2.out"

        createTrailDot(event.clientX, event.clientY);

    // Function to create a trailing dot
    function createTrailDot(x, y) {
        const trailDot = document.createElement('div');
        trailDot.style.width = '10px';
        trailDot.style.height = '10px';
        trailDot.style.backgroundColor = 'blue';
        trailDot.style.borderRadius = '50%';
        trailDot.style.position = 'absolute';
        trailDot.style.left = `${x - 5}px`;
        trailDot.style.top = `${y - 5}px`;

        gsap.to(trailDot, {
            scale: 0,
            duration: 0.5,
            opacity: 0,
            onComplete: () => {

    // Event listener for mouse movement
    document.addEventListener('mousemove', updateCursorPosition);

    // Hide the default cursor
    document.body.style.cursor = 'none';

This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piƱa coladas. (And gettin’ caught in the rain.)

…or something like this:

The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!