Skip to content

Commit

Permalink
feat:added shimmer for iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
dev1abhi committed Mar 30, 2024
1 parent 730b435 commit c4cd481
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions movie_details/movie_details.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,22 @@ width: 100%
margin: 5px; /* Add some spacing between images */
}

@keyframes shimmer {
0% {
background-position: -1000px;
}
100% {
background-position: 1000px;
}
}

.shimmer-bg {
background: linear-gradient(to right, rgba(16, 32, 47, 0.1) 0%, rgba(16, 32, 47, 0.3) 50%, rgba(33, 100, 161, 0.1) 100%);
background-size: 1000px 100%;
animation: shimmer 1.5s infinite linear;
}



/* CSS for sidebar div*/

Expand Down
2 changes: 1 addition & 1 deletion movie_details/movie_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<center>
<div id="videoPlayer" style="background-color: rgb(3, 16, 27);color: black; ">
<center>
<iframe id="movieIframe" src="" width="80%" style="margin-bottom: -5px;" frameborder="0" allowfullscreen></iframe>
<iframe id="movieIframe" src="" width="80%" style="margin-bottom: -5px;" frameborder="0" allowfullscreen class="shimmer-bg" ></iframe>
</center>
</div>

Expand Down
2 changes: 1 addition & 1 deletion series_details/series_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</div>

<div id="buttons">
<button id="Trailerbtn" class="btn">Watch Trailer</button>
<button id="Trailerbtn" class="btn">Trailer</button>

<button id="Server1Btn" class="btn" >Server 1</button>

Expand Down

0 comments on commit c4cd481

Please sign in to comment.