Example Java/HTML Code:
#HTML
1 <style>
2 .test
3 {
4 position: fixed !important;
5 top: 0 !important;
6 left: 0 !important;;
7 right: 0 !important;;
8 z-index:999 !important;
9 width:300px !important;
10 height:200px !important;
11 }
12 </style>
13 <script>
14 window.onscroll = function() {myFunction()};
15 function myFunction() {
16 if (document.body.scrollTop > 90 || document.documentElement.scrollTop > 90) {
17 document.getElementById("video-PUTHERETHECSSVIDEOSELECTORCODE").className = "test";
18 } else {
19 document.getElementById("video-PUTHERETHECSSVIDEOSELECTORCODE").className = "";
20 }
21 }
22 </script>
Example CSS:
#HTML
1 #video-PUTHERETHECSSVIDEOSELECTORCODE {
2 float: left;
3 }