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. Image Hover - make HTML5 Video (instead of GIF)

Image Hover - make HTML5 Video (instead of GIF)

Scheduled Pinned Locked Moved Addons
12 Posts 4 Posters 1.1k 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.
  • T Offline
    T Offline
    Tim B
    wrote on last edited by
    #3

    Dear, Richard,

    this was very very helpful for me. Could you help me find a solution for what now appears to be in the way because of the Gridder:

    I cannot put multiple videos on the same position as the image hover would have been. Is there a way to override the position of the videos in the Gridder so that every video is on a fixed position and ideally the page is a one page without scrollbar?

    Probably you need to edit the css lines? Also what would be the solution to make the video fullscreen in the background on hover?

    Cheers and thanks,

    Tim

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #4

      Dear @Tim-B

      Do you have any examples of what you are trying to achieve? just to clarify šŸŒ Might need some more info please:

      "I cannot put multiple videos on the same position as the image hover would have been"


      "Also what would be the solution to make the video fullscreen in the background on hover?"

      I would take advantage of lay Theme's built-in background video option:

      Screen Shot 2022-03-14 at 4.41.54 PM.png

      Here is a link that may help as well:

      http://laythemeforum.com:4567/topic/6087/imagehover-on-element-grid-lightbox-on-carousel

      The video would have an opacity:0 and then when hovering the link the background video would have an opacity:1 .


      Best wishes Tim šŸš€
      Richard
      T 1 Reply Last reply
      0
      • RichardR Richard

        Dear @Tim-B

        Do you have any examples of what you are trying to achieve? just to clarify šŸŒ Might need some more info please:

        "I cannot put multiple videos on the same position as the image hover would have been"


        "Also what would be the solution to make the video fullscreen in the background on hover?"

        I would take advantage of lay Theme's built-in background video option:

        Screen Shot 2022-03-14 at 4.41.54 PM.png

        Here is a link that may help as well:

        http://laythemeforum.com:4567/topic/6087/imagehover-on-element-grid-lightbox-on-carousel

        The video would have an opacity:0 and then when hovering the link the background video would have an opacity:1 .


        Best wishes Tim šŸš€
        Richard
        T Offline
        T Offline
        Tim B
        wrote on last edited by
        #5

        @Richard

        Dear Richard, yes this could work. It does work for example to set a video as row background, give the row a class/id and follow all the steps before. The video only gets shown when hovering the link, its also fullscreen.

        ALL fine. BUT:

        You can't use multiple videos I think. For example if I want to build an own index by showing multiple project names functioning as links, giving all the links the described ids and matching videos, I won't be able to stack all the videos to the same position. So I will end up with multiple rows of videos and not with ONE one pager without a scrollbar, where all videos appear at the same position.

        A modification of the image hover to be able to be used as a video hover with fullscreen function would be great.

        If its still possible to achieve this by any other solution, I would be more than happy to hear it.

        Best,
        Tim

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #6

          Dear Tim

          @Tim-B

          Thanks for the feedback, will add to development notes for future discussion. āœ…

          As for multiple videos:

          " I won't be able to stack all the videos to the same position."

          You could make use of Custom CSS to set whatever position you like for the Video element:

          https://www.w3schools.com/cssref/pr_class_position.asp


          Best wishes
          Richard
          T 1 Reply Last reply
          0
          • RichardR Richard

            Dear Tim

            @Tim-B

            Thanks for the feedback, will add to development notes for future discussion. āœ…

            As for multiple videos:

            " I won't be able to stack all the videos to the same position."

            You could make use of Custom CSS to set whatever position you like for the Video element:

            https://www.w3schools.com/cssref/pr_class_position.asp


            Best wishes
            Richard
            T Offline
            T Offline
            Tim B
            wrote on last edited by
            #7

            @Richard said in Image Hover - make HTML5 Video (instead of GIF):

            https://www.w3schools.com/cssref/pr_class_position.asp

            Okay perfect, I can use that! It works almost as needed..

            Added these to the css:

            .show video{
            opacity:1 !important;
            position:fixed;
            width: 100%;
            }
            

            -> now the video loops fullscreen BUT in the foreground.

            Any idea on what to add or change so that the video now actually sits in the background? Right now its sitting above the links I am hovering over (wich should of course still be visible. I already tried using z-index but that didn't help as then the video was sitting behind the links but only in the height of the (what I think to be the) link div...

            .show video{
            opacity:1 !important;
            position:fixed;
            width: 100%;
            z-index:-1;
            }
            

            Bildschirmfoto 2022-03-18 um 15.49.04.jpg

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Tim B
              wrote on last edited by
              #8

              I could solve the described problem by giving my text stack that includes the hover links an own css id that had the following property:

              #anchor{
              z-index:99999;
              }
              

              Now the videos are fullscreen and in the background.

              1 Reply Last reply
              0
              • RichardR Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on last edited by
                #9

                Thanks for the update @Tim-B great and simple solution šŸ’„ ā­ļø

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  marc
                  wrote on last edited by marc
                  #10

                  Hello,

                  Interesting topic!
                  I'm looking to do the same thing of my index page.

                  So sorry, but to resume, what is the full solution to have video on some links hover (fullpage width)?
                  Exactly as https://www.paul-geusebroek.com/

                  Use row video or video on the gridder?

                  I would have video on some links and images on other links, depending of projects.

                  Thanks a lot,
                  Marc

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Tim B
                    wrote on last edited by
                    #11
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      marc
                      wrote on last edited by
                      #12

                      Sorry to bother you guys, I should miss something in the process but after few hours still not working!

                      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
                      A
                      alasdair17
                      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