Changed onair animation

This commit is contained in:
Jorit Tijsen
2024-03-15 18:10:52 +01:00
parent 5187062cb1
commit 43c14de45d

View File

@@ -113,17 +113,21 @@
</div>
</div>
</div>
<style>
.post_container .post_tags li a {
background-image: linear-gradient(to right, #0d1ca3, #003cb9, #0056cb, #0070db, #0189e9, #0189e9, #0189e9, #0189e9, #0070db, #0056cb, #003cb9, #0d1ca3);
}
</style>
@endsection
@push('scripts')
<script type="text/javascript">
var $onAirIcon = $('#items .onair span.fa');
setInterval(function() {
$onAirIcon.removeClass('fa-play');
setTimeout(function() {
$onAirIcon.addClass('fa-play');
}, 500);
}, 1000);
var $onAir = $('.podcast_items .onair');
setInterval(function() {
$onAir.animate({"background-position": "100px"});
setTimeout(function() {
$onAir.animate({"background-position": "0"});
}, 400);
}, 800);
</script>
@endpush