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. 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 1.5k Views 1 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.
  • H
    H
    huertels
    wrote on last edited by arminunruh
    #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
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on 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
        H
        huertels
        wrote on 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
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on 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
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on 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
              H
              huertels
              wrote on last edited by
              #6

              Thank you very much! It worked perfectly.

              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
              arminunruhA
              arminunruh
              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