Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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

  1. Home
  2. Addons
  3. Carousel - Numbers as custom cursor shown UNDER normal cursor

Carousel - Numbers as custom cursor shown UNDER normal cursor

Scheduled Pinned Locked Moved Addons
5 Posts 4 Posters 1.5k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    K
    koliveros
    wrote on last edited by
    #1

    Hey there,

    Really love how https://www.actualsource.work/ uses the carousel feature with the numbers on top of the image (ie 1/5)

    I'd like to know how I can (1) have the numbers over the image (2) use it as a custom cursor (so the numbers follow the pointer) (3) have it live below the normal cursor (not instead of it)

    Thank you so much!

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dea r@

      probably a simple jQuery code was used which makes the number to follow the cursor.

      There are plenty of those codes out there which you can use.
      Also have a look here:
      http://laytheme.com/documentation.html#custom-javascript

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • C
        C
        craigfeldspar
        wrote on last edited by
        #3

        Up @arminunruh :)
        Do you think you can make this feature?
        best!

        Craig

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          that website used to be a lay theme website, now they custom coded it!

          i think i wont code this feature :O

          1 Reply Last reply
          0
          • C
            C
            craigfeldspar
            wrote on last edited by
            #5

            I managed to make the numbers as custom cursor thanks to chatgpt.
            here's what it looks like : https://www.benoitlefeuvre.com/earthworks/

            here's the js code :

            <script>
                    document.addEventListener("mousemove", (e) => {
                        const followTexts = document.querySelectorAll(".numbers");
                        const x = e.clientX;
                        const y = e.clientY;
            
                        // Update the position for each element with the class
                        followTexts.forEach((followText) => {
                            followText.style.left = x + "px";
                            followText.style.top = y + "px";
                        });
                    });
            </script>
            

            then here's the css selector :

            .lay-carousel-sink-parent .numbers {
            }
            

            I can't share my exact style because I have several hover states on the carousel, so you'll have to specify the css that works best for you.
            To retain the next/prev slide function, you'll need to add an empty 10x10px png, for example, to the 'custom mouse cursor' parameters.

            I hope this helps !

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Online Users
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

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