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

  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 537 Views
  • 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 Offline
    K Offline
    koliveros
    wrote on Feb 24, 2019, 10:37 PM 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
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Feb 25, 2019, 1:52 PM 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 Offline
        C Offline
        craigfeldspar
        wrote on Oct 27, 2023, 5:29 PM last edited by
        #3

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

        Craig

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Nov 5, 2023, 11:26 PM 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 Offline
            C Offline
            craigfeldspar
            wrote on Nov 13, 2023, 8:51 AM 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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            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