Hi,
habe einen Preloader programmiert...
aber irgendwie funktioniert der Code nicht...
Stehe grade auf dem Schlauch...
habe einen Preloader programmiert...
aber irgendwie funktioniert der Code nicht...
Stehe grade auf dem Schlauch...
HTML-Code:
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> <style> .content {display:none;} .preload { width:100px; height: 100px; position: fixed; top: 50%; left: 50%; } </style> <div class="preload"> <img src="http://i.imgur.com/KUJoe.gif"> </div> <div class="content"> Content </div> <script> $(function() { $(".preload").fadeOut(2000, function() { $(".content").fadeIn(1000); }); }); </script>
Kommentar