fbpx

Wenn du das Video gesehen hast, erscheint hier ein Button, der dich zum Erfolgscoaching bringt.

.delayed-button, .divi-delayed-button-2 { visibility: hidden; transition: all 400ms ease !important; } .delayed-button.show-button, .divi-delayed-button-2.show-button { visibility: visible; transform: none; } (function ($) { $(document).ready(function () { //items $diviVideo = $("#divi-video-container video"); videoElement = $("#divi-video-container video")[0]; $delayedButton1 = $(".delayed-button"); $delayedButton2 = $(".divi-delayed-button-2"); //add timeupdate event on video with a function. $diviVideo.on("timeupdate", function (e) { //add class to show button1 when specified currentTime is reached. if (e.target.currentTime >= 5) { $delayedButton1.addClass("show-button"); } //add class to show button2 when video is paused or has ended if (videoElement.paused || videoElement.ended) { $delayedButton2.addClass("show-button"); } }); }); })(jQuery);

Du hast die anderen Videos noch nicht gesehen?
Hier kannst du dir alle nochmals anschauen:

Abonnieren
Benachrichtige mich bei
Wird neben Deinem Kommentar veröffentlicht.
Wird NICHT öffentlich gezeigt
0 Kommentare
Inline Feedbacks
Zeige alle Kommentare

© meintraumhund.de Chrissy Zeh | Impressum | Datenschutzerklärung

0
Was denkst du?x