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. hover images appearing (pre-loading?) on corner of page

hover images appearing (pre-loading?) on corner of page

Scheduled Pinned Locked Moved Addons
4 Posts 2 Posters 49 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.
  • M Offline
    M Offline
    MartinRL
    wrote on last edited by
    #1

    Hello,

    something strange happens on all the pages where I use hovering images. Whenever you open or refresh the page, for the fraction of a second (but noticeable) those images appear on the top left corner. I haven’t enabled "pre-load hovering image", btw.

    https://martinrobertlutz.de/de/index/
    https://martinrobertlutz.de/de/info/

    Here are screengrabs, in case you can't see it in your browser:
    https://martinrobertlutz.de/wp-content/uploads/2025/02/Ohne-Titel1.mp4
    https://martinrobertlutz.de/wp-content/uploads/2025/02/Ohne-Titel2.mp4

    In the second video (index page, which has several hover images), if you look closely frame by frame you can see that it looks like several (or all?) of them are stacked on top of each other. This is what it looks like:

    Bildschirmfoto 2025-02-17 um 13.59.08.png

    It can’t be cache related, as people who have never been on my website before are experiencing it. Any idea what's happening there?

    Thanks!
    Martin

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

      does it also happen if u turn off your custom css?

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

        u need to remove this css:

        .lay-imagehover-on-element {
            transition: opacity 500ms ease;
        }
        

        instead use this css

        .lay-imagehover-on-element.transition[data-transition=fade2] {
          transition: opacity 500ms ease!important;
        }
        
        .lay-imagehover-on-element.transition[data-transition=fade] {
          transition: opacity 500ms ease!important;
        }
        

        yes, this wont let them fade out, only fade in, they will hide immediately
        i dont really have time to make them fade out :D

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MartinRL
          wrote on last edited by MartinRL
          #4

          With custom css disabled, it doesn't happen, as you assumed.

          Thanks for the code, it DOES solve the problem, and the fade-outs are a fair tradeoff!

          Thanks for the wizardry so far :-)

          M.

          1 Reply Last reply
          1
          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
          D
          dnlbrv
          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