Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

C

craigfeldspar

@craigfeldspar
About
Posts
56
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • custom Switch button in footer
    C craigfeldspar

    Thank you very much for your help and your time. That's exactly what I was looking for šŸ™

    General Discussion

  • Ignore a targeted element in the ā€˜Transitions when Navigating’
    C craigfeldspar

    it works like this thank you very much :)

    General Discussion

  • Bug on specific project page
    C craigfeldspar

    I figured out how to do it: https://benoitlefeuvre.com/

    <script>
    let cursorX = 0;
    let cursorY = 0;
    let cursorMoved = false; 
    
    document.addEventListener("mousemove", (e) => {
        if (!cursorMoved) {
            showCursor(); 
            cursorMoved = true;
        }
        
        cursorX = e.clientX;
        cursorY = e.clientY;
        updateCursorPosition();
    });
    
    function updateCursorPosition() {
        const followTexts = document.querySelectorAll(".numbers");
        followTexts.forEach((followText) => {
            followText.style.left = cursorX + "px";
            followText.style.top = cursorY + "px";
        });
    }
    
    function showCursor() {
        const followTexts = document.querySelectorAll(".numbers");
        followTexts.forEach((followText) => {
            followText.style.display = "block"; 
        });
    }
    
    function hideCursor() {
        const followTexts = document.querySelectorAll(".numbers");
        followTexts.forEach((followText) => {
            followText.style.display = "none"; 
        });
    }
    
    window.laytheme.on("newpageshown", function() {
        cursorMoved = false; 
        hideCursor();
    });
    </script>
    
    Bug Reports
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search