Advertisement
Katsiree

text2_betnow

Jun 14th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <style>
  2. .p_text {
  3. position: relative;
  4. top: -9px;
  5. border: 0;
  6. transition: all 40ms linear;
  7. margin-top: 10px;
  8. margin-bottom: 10px;
  9. margin-left: 2px;
  10. margin-right: 2px;
  11. color: #721c24;
  12. padding: 15px;
  13. font-weight: bold;
  14. border-radius: 5px;
  15. border: 1px #f5c6cb solid;
  16. box-shadow: 0 4px 13px rgba(255, 113, 113, 0.5) !important;
  17. }
  18.  
  19. .p_border_r {
  20. background-color: rgba(255, 255, 255, 0.8);
  21. border-radius: 5px;
  22. z-index: 2;
  23. background: linear-gradient(45deg, rgba(255, 160, 160, 0.301) 0%, rgba(250, 135, 135, 0.315) 20%, transparent 20.3%, transparent 80%, rgba(255, 190, 190, 0.5) 80.3%)
  24. }
  25.  
  26. .p_border_r::after {
  27. content: '';
  28. position: absolute;
  29. z-index: -1;
  30. left: 6px;
  31. top: 6px;
  32. width: calc(100% - 12px);
  33. height: calc(100% - 12px);
  34. background: #f8d7da;
  35. border-radius: 5px;
  36. }
  37. </style>
  38.  
  39.  
  40. <div class="magick p_text p_border_r">
  41. <span class="font-weight-bold" style="font-size: 16px;">ระวัง!</span> ในบิลของท่านมีเลขดัง
  42. ยอดจ่ายจะปรับเปลี่ยนไปตามความเหมาะสม</div>
  43.  
  44. <script>
  45. $(document).ready(function () {
  46.  
  47. var grad = $('.p_border_r').css('background');
  48. var deg = 45;
  49. var lastms = 0;
  50. var animate = true;
  51.  
  52. var callback = function (time) {
  53. if (lastms == 0) {
  54. lastms = time;
  55. }
  56. deg = (deg + (time - lastms) * 0.3);
  57. lastms = time;
  58. while (deg > 360) {
  59. deg -= 360;
  60. }
  61. var newCss = grad.replace('45deg', deg + 'deg');
  62.  
  63. $('.p_border_r').css('background', newCss);
  64. if (animate) {
  65. window.requestAnimationFrame(callback);
  66. } else {
  67. lastms = 0;
  68. }
  69. };
  70.  
  71. window.requestAnimationFrame(callback);
  72.  
  73. })
  74. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement