Advertisement
nrzmalik

Storyline Player Custom NEXT Button

Oct 9th, 2024
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 3.20 KB | Source Code | 0 0
  1. function addCssToHead(cssRules) {
  2.  
  3.     var styleElement = document.createElement('style');
  4.  
  5.  
  6.     styleElement.textContent = cssRules;
  7.  
  8.     document.head.appendChild(styleElement);
  9. }
  10.  
  11. var css = `  #next.cs-button.btn {
  12.    
  13.     border-radius: 50px !important;
  14.     border: 0.5px solid rgba(255, 255, 255, 0.349) !important;
  15.     background-color: rgb(12, 12, 12) !important;
  16.     margin: 0 !important;
  17.     display: flex !important;
  18.     align-items: center !important;
  19.     justify-content: center !important;
  20.     overflow: hidden !important;
  21.     position: relative !important;
  22.     transition: background-color 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  23.     margin: none !important;
  24. }
  25.  
  26. #next.cs-button.btn .view-content {
  27.  
  28.     width: 100% !important;
  29.     position: relative !important;
  30. }
  31.  
  32. #next.cs-button.btn .btn-icon {
  33.     width: 30px !important;
  34.     height: 30px !important;
  35.     background: linear-gradient(to bottom, rgb(255, 136, 255), rgb(172, 70, 255)) !important;
  36.     border-radius: 50% !important;
  37.     display: flex !important;
  38.     align-items: center !important;
  39.     justify-content: center !important;
  40.     position: absolute !important;
  41.     left: 0 !important;
  42.     z-index: 2 !important;
  43.     transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  44. }
  45.  
  46. #next.cs-button.btn .cs-icon.next-icon {
  47.     width: 10px !important;
  48.     height: 18px !important;
  49.     fill: white !important;
  50.     border-radius: 1px !important;
  51.     transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  52. }
  53.  
  54. #next.cs-button.btn .text {
  55.     height: 100% !important;
  56.     margin-left: 10px !important;
  57.     width: 60px !important;
  58.     display: flex !important;
  59.     align-items: center !important;
  60.     justify-content: center !important;
  61.     color: white !important;
  62.     z-index: 1 !important;
  63.    
  64.     transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.5s ease, opacity 0.5s ease !important;
  65. }
  66.  
  67. #next.cs-button.btn:hover .btn-icon {
  68.     width: 100% !important;  
  69.     border-radius: 50px !important;
  70.     transition-duration: 0.5s !important;
  71. }
  72.  
  73. #next.cs-button.btn:hover .text {
  74.     transform: translateX(20px) !important;
  75.     width: 0 !important;
  76.     font-size: 0 !important;
  77.     opacity: 0 !important;
  78.     transition-duration: 0.5s !important;
  79. }
  80.  
  81. #next.cs-button.btn:hover .cs-icon.next-icon {
  82.     transform: scale(1.2) !important;
  83. }
  84.  
  85.  
  86. #next.cs-button.btn.cs-disabled {
  87.     opacity: 0.6 !important;
  88.     cursor: not-allowed !important;
  89. }
  90.  
  91. #next.cs-button.btn.cs-disabled .btn-icon {
  92.     background: linear-gradient(to bottom, rgb(180, 180, 180), rgb(120, 120, 120)) !important;
  93. }
  94.  
  95. #next.cs-button.btn.cs-disabled:hover .btn-icon {
  96.     width: 30px !important;
  97. }
  98.  
  99. #next.cs-button.btn.cs-disabled:hover .text {
  100.     transform: none !important;
  101.     width: 60px !important;
  102.     font-size: 1.04em !important;
  103. }
  104.  
  105. #next.cs-button.btn.cs-disabled:active {
  106.     transform: none !important;
  107. }
  108.  
  109. #next.cs-button.btn .text  {
  110.    margin-left: 25px !important;
  111.     margin-right: 0px !important;
  112. } `;
  113.  
  114.  
  115. addCssToHead(css);
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement