Advertisement
lanon

8chan CSS

Sep 22nd, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.37 KB | None | 0 0
  1. /* Just a CSS script I'm using on 8chan.
  2. Makes all threads in the catalog faded out, and makes them clear on mouse-over.*/
  3.  
  4. .theme-catalog div.thread {
  5.     margin-left:5px;
  6.     margin-right:5px;
  7.     padding: 5px;
  8.     opacity: 0.3;
  9. }
  10. .theme-catalog div.thread:not(hover) {
  11.     -webkit-animation: mouseOut 1s 1; /* Safari 4+ */
  12.     -moz-animation: mouseOut 1s 1; /* Fx 5+ */
  13.     -o-animation: mouseOut 1s 1; /* Opera 12+ */
  14.     animation: mouseOut 1s 1; /* IE 10+, Fx 29+ */
  15. }
  16. .theme-catalog div.thread:hover {
  17.     -webkit-animation: mouseHover 1s 1; /* Safari 4+ */
  18.     -moz-animation: mouseHover 1s 1; /* Fx 5+ */
  19.     -o-animation: mouseHover 1s 1; /* Opera 12+ */
  20.     animation: mouseHover 1s 1; /* IE 10+, Fx 29+ */
  21.     opacity: 1;
  22. }
  23.  
  24. @-webkit-keyframes mouseHover {
  25.   0%   { opacity: 0.3; }
  26.   100% { opacity: 1; }
  27. }
  28. @-moz-keyframes mouseHover {
  29.   0%   { opacity: 0.3; }
  30.   100% { opacity: 1; }
  31. }
  32. @-o-keyframes mouseHover {
  33.   0%   { opacity: 0.3; }
  34.   100% { opacity: 1; }
  35. }
  36. @keyframes mouseHover {
  37.   0%   { opacity: 0.3; }
  38.   100% { opacity: 1; }
  39. }
  40. @-webkit-keyframes mouseOut {
  41.   0%   { opacity: 1; }
  42.   100% { opacity: 0.3; }
  43. }
  44. @-moz-keyframes mouseOut {
  45.   0%   { opacity: 1; }
  46.   100% { opacity: 0.3; }
  47. }
  48. @-o-keyframes mouseOut {
  49.   0%   { opacity: 1; }
  50.   100% { opacity: 0.3; }
  51. }
  52. @keyframes mouseOut {
  53.   0%   { opacity: 1; }
  54.   100% { opacity: 0.3; }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement