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. Feedback
  3. Project Thumbnail Video, go to beginning of Video on mouse leave

Project Thumbnail Video, go to beginning of Video on mouse leave

Scheduled Pinned Locked Moved Feedback
6 Posts 3 Posters 752 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.
  • H Offline
    H Offline
    huertels
    wrote on Sep 4, 2018, 4:31 PM last edited by arminunruh Sep 9, 2018, 3:50 AM
    #1

    Hi,

    I was the one asking for this effect when mouseover on a video:
    http://manson.st/work

    So glad you added it to new updates. Thanks so much.

    Now I have a client who's asking for starting the video when mouseover but making it pause and begin again when not. You can see the effect here in some project:
    https://abcdefghijklmn-pqrstuvwxyz.com/es/

    It would be great to have both options. (1) Always playing; (2) Paused and play when mouseover, pause at last frame when not; (3) Paused and play when mouseover, pause and start again when not.

    Can you help me with that? Sounds good for an update?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Sep 8, 2018, 4:10 PM last edited by
      #2

      Dear @huertels
      since the new Update this is possible.

      Maybe you did not find the setting.

      0_1536423040477_Bildschirmfoto 2018-09-08 um 18.09.34.png

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • H Offline
        H Offline
        huertels
        wrote on Sep 8, 2018, 4:29 PM last edited by
        #3

        @mariusjopen please, can you read my post again? Maybe I didn't explained myself.

        I'm so grateful for your update. In fact, I was the one asking for it, but:

        Right now you only have 2 options: (1) Autoplay; (2) Play on mouseover, pause when not.

        I'm asking for a third one: (3) Play on mouseover, pause AND GO TO THE FIRST FRAME when not.

        You can see the effect hovering on the actual cover of this website:
        https://abcdefghijklmn-pqrstuvwxyz.com/es/

        Hope you consider it.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Sep 8, 2018, 5:18 PM last edited by
          #4

          Dear @huertels
          ok. Now it is clear.

          Yes. I will let Armin know.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Sep 9, 2018, 7:49 AM last edited by
            #5

            Hey, add this to "Lay Options" -> "Custom CSS & HTML" -> "Custom <head> Content":

            <script>
            laytheme.on('newpageshown', function(){
            	if(frontendPassedData.video_thumbnail_mouseover_behaviour == 'play_on_mouseover'){
            		jQuery('body').on('mouseleave', '.thumb-rel', function(){
            			var $vid = jQuery(this).find('video');
            			if($vid.length > 0){
            				$vid[0].currentTime = 0;
            			}
            		});
            	}
            });
            </script>
            
            1 Reply Last reply
            2
            • H Offline
              H Offline
              huertels
              wrote on Sep 12, 2018, 12:05 PM last edited by
              #6

              Thank you very much! It worked perfectly.

              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes

              1/6

              Sep 4, 2018, 4:31 PM


              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.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search