Advertisement
brooklyndesignstudio

Divi Video Banner - No Looping

Aug 31st, 2018 (edited)
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!----  NO LOOP VIDEO BANNER - STOP ON LAST FRAME  ---->
  2. <script>
  3. (function($) {
  4.     $(document).ready(function() {
  5.  
  6.             $(this).find('video').removeAttr('loop');
  7.  
  8.         $('video').mediaelementplayer({
  9.             autoRewind: false
  10.         });
  11.     });
  12. })(jQuery);
  13. </script>
  14.  
  15. <!----  NO LOOP VIDEO BANNER - CREATE CLASS (no-loop)  ---->
  16. <script>
  17. (function($) {
  18.     $(document).ready(function() {
  19.         $('.no-loop .et_pb_section_video_bg').each(function() {
  20.             $(this).find('video').removeAttr('loop');
  21.         });
  22.     });
  23. })(jQuery);
  24. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement