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. 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 521 Views 2 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.
  • M
    M
    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
      arminunruhA
      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
        arminunruhA
        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
          M
          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

          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