Advertisement
Guest User

Untitled

a guest
Oct 7th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.09 KB | None | 0 0
  1. .diy-slideshow{
  2.     position: relative;
  3.     display: block;
  4.     overflow: hidden;
  5. }
  6. figure{
  7.     position: absolute;
  8.     opacity: 0;
  9.     transition: 1s opacity;
  10. }
  11. figcaption{
  12.     position: absolute;
  13.     font-family: sans-serif;
  14.     font-size: .8em;
  15.     bottom: .75em;
  16.     right: .35em;
  17.     padding: .25em;
  18.     color: #fff;
  19.     background: rgba(0,0,0, .25);
  20.     border-radius: 2px;
  21. }
  22. figcaption a{
  23.     color: #fff;
  24. }
  25. figure.show{
  26.     opacity: 1;
  27.     position: static;
  28.     transition: 1s opacity;
  29. }
  30. .next, .prev{
  31.     color: #fff;
  32.     position: absolute;
  33.     background: rgba(0,0,0, .6);
  34.     top: 50%;
  35.     z-index: 1;
  36.     font-size: 2em;
  37.     margin-top: -.75em;
  38.     opacity: .3;
  39.     user-select: none;
  40. }
  41. .next:hover, .prev:hover{
  42.     cursor: pointer;
  43.     opacity: 1;
  44. }
  45. .next{
  46.     right: 0;
  47.     padding: 10px 5px 15px 10px;
  48.     border-top-left-radius: 3px;
  49.     border-bottom-left-radius: 3px;
  50. }
  51. .prev{
  52.     left: 0;
  53.     padding: 10px 10px 15px 5px;
  54.     border-top-right-radius: 3px;
  55.     border-bottom-right-radius: 3px;
  56. }
  57. p{
  58.     margin: 10px 20px;
  59.     color: #fff;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement