Auto start and stop on hover
-
Hi ,
is it possible to create your plugin to be auto play on hover and stop when not hovered.
I have found some code for video, but can someone help me to change it and to put it somewhere in the plugin to make it work.var figure = $(".video").hover( hoverVideo, hideVideo ); function hoverVideo(e) { $('video', this).get(0).play(); } function hideVideo(e) { $('video', this).get(0).pause(); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Auto start and stop on hover’ is closed to new replies.