In this tutorial , I would be covering the following points:
I will explain, how to remove video controller from video? and How to make video autoplay in divi?
You can change the Divi logo on scroll in these simple steps:
1. In the Divi video module setting panel, add my css class” ganga-video-autoplay”
2.In the Divi Theme Options panel,Go to integration tab and past the below code.
<script>
jQuery(document).ready(function() {
if (jQuery('.ganga-video-autoplay .et_pb_video_box').length !== 0) {
jQuery('.ganga-video-autoplay .et_pb_video_box').find('video').prop('muted', true);
jQuery(".ganga-video-autoplay .et_pb_video_box").find('video').attr('loop', 'loop');
jQuery(".ganga-video-autoplay .et_pb_video_box").find('video').attr('playsInline', '');
jQuery(".ganga-video-autoplay .et_pb_video_box").each(function() {
jQuery(this).find('video').get(0).play();
});
jQuery('.ganga-video-autoplay .et_pb_video_box').find('video').removeAttr('controls');
}
});
</script>
Hope you like the tutorial!
