Advertisement
Guest User

Flicker effect

a guest
Apr 29th, 2023
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <style>
  2. @keyframes flicker {
  3. 0% {
  4. opacity: 0.27861;
  5. }
  6. 5% {
  7. opacity: 0.34769;
  8. }
  9. 10% {
  10. opacity: 0.23604;
  11. }
  12. 15% {
  13. opacity: 0.90626;
  14. }
  15. 20% {
  16. opacity: 0.18128;
  17. }
  18. 25% {
  19. opacity: 0.83891;
  20. }
  21. 30% {
  22. opacity: 0.65583;
  23. }
  24. 35% {
  25. opacity: 0.67807;
  26. }
  27. 40% {
  28. opacity: 0.26559;
  29. }
  30. 45% {
  31. opacity: 0.84693;
  32. }
  33. 50% {
  34. opacity: 0.96019;
  35. }
  36. 55% {
  37. opacity: 0.08594;
  38. }
  39. 60% {
  40. opacity: 0.20313;
  41. }
  42. 65% {
  43. opacity: 0.71988;
  44. }
  45. 70% {
  46. opacity: 0.53455;
  47. }
  48. 75% {
  49. opacity: 0.37288;
  50. }
  51. 80% {
  52. opacity: 0.71428;
  53. }
  54. 85% {
  55. opacity: 0.70419;
  56. }
  57. 90% {
  58. opacity: 0.7003;
  59. }
  60. 95% {
  61. opacity: 0.36108;
  62. }
  63. 100% {
  64. opacity: 0.24387;
  65. }
  66. }
  67.  
  68. #wrapper::after {
  69. content: " ";
  70. display: block;
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. bottom: 0;
  75. right: 0;
  76. background: rgba(18, 16, 16, 0.1);
  77. opacity: 0;
  78. z-index: 2;
  79. pointer-events: none;
  80. animation: flicker 0.15s infinite;
  81. }
  82. #wrapper::before{
  83. content: " ";
  84. display: block;
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. bottom: 0;
  89. right: 0;
  90. background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  91. z-index: 2;
  92. background-size: 100% 2px, 3px 100%;
  93. pointer-events: none;
  94. }
  95. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement