Emmes

Mini Librito

Jun 21st, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.40 KB | None | 0 0
  1. <div class="M98"><div class="conM98">
  2.  
  3. <input type="checkbox" name="porM98" id="M98">
  4. <label for="M98" class="porM98 aa"><div style="background-image: url(https://i.imgur.com/xwUwkmQ.gif); color: #FFF0A1;">
  5. <strong>(abrir)</strong></div><div style="background-image: url(https://i.imgur.com/l1EKUcF.jpg);"><strong>(cerrar)</strong></div></label>
  6.  
  7. <input type="checkbox" id="aaM98"><label class="bpM98" for="aaM98">01</label><span><i><div class="pagM98">Pág. 001
  8. </div><div class="pagM98">Pág. 002
  9. </div></i></span>
  10.  
  11. <input type="checkbox" id="jjM98"><label class="bpM98" for="jjM98">02</label><span><i><div class="pagM98">Pág. 003
  12. </div><div class="pagM98">Pág. 004
  13. </div><a href="https://emmescodes.tumblr.com/" title="Code by Emme" class="miM98">Emme</a></i></span>
  14.  
  15. <div class="pagM98 con" style="background-image: url(https://i.imgur.com/l1EKUcF.jpg);"></div></div>
  16.  
  17. </div>
  18.  
  19. <link href="https://fonts.googleapis.com/css?family=Montserrat:400,900|Ruge+Boogie|Lora&display=swap" rel="stylesheet">
  20.  
  21.  
  22. CSS:
  23. .M98 > br, .conM98 > br, .M98 input {
  24.  display: none;
  25. }
  26. .M98 div::-webkit-scrollbar {
  27.  width: 3px !important;
  28.  background: #0006 !important;
  29. }
  30. .M98 div::-webkit-scrollbar-thumb {
  31.  background: #0006 !important;
  32. }
  33. .M98, .M98 * {
  34.  transition: 1s;
  35.  box-sizing: border-box;
  36. }
  37. .M98 {
  38.  padding: 50px 0;
  39.  font: 10px Montserrat;
  40.  color: #333;
  41. }
  42. .conM98 {
  43. width: 250px;
  44. height: 350px;
  45.  margin: auto;
  46.  position: relative;
  47.  transform-style: preserve-3d;
  48.  perspective: 2000px;
  49.  z-index: 2;
  50. }
  51. .porM98.aa {
  52.  z-index: 30;
  53.  transform-style: preserve-3d;
  54. }
  55. .porM98.aa, .conM98 > span, .pagM98, .conM98 > span > i {
  56.  position: absolute;
  57.  top: 0;
  58.  left: 0;
  59.  width: 100%;
  60.  height: 100%;
  61.  transform-origin: left center;
  62. }
  63. #M98:checked ~ span, #M98:checked ~ .pagM98.con {
  64.  margin-left: 50%;
  65. }
  66. .conM98 > span > i {
  67.  transform-style: preserve-3d;
  68.  perspective: 2000px;
  69.  font-style: normal;
  70. }
  71. .pagM98 {
  72.  backface-visibility: hidden;
  73.  background: #FFF;
  74.  padding: 30px;
  75.  color: #b4b4b4;
  76.  font-size: 8px;
  77.  text-align: left;
  78. }
  79. .pagM98:nth-of-type(odd) {
  80.  background: linear-gradient(to right, #DDD, #FFF 1px);
  81.  text-align: right;
  82. }
  83. #M98:checked ~ .porM98.aa {
  84.  transform: rotateY(-181deg);
  85.  animation: port .6s both;
  86.  margin-left: 125px;
  87. }
  88.  
  89. #M98:checked ~ label.bpM98 {
  90.  display: block;
  91. }
  92. .pagM98:nth-of-type(even) {
  93.  transform: rotateY(180deg) translateX(-100%);
  94. }
  95. .bpM98 {
  96.  position: absolute;
  97.  top: calc(100% + 10px);
  98.  left: 125px;
  99.  padding: 4px 0 2px;
  100.  background: #FFF;
  101.  display: none;
  102.  margin-left: 70px;
  103.  width: 21px;
  104.  text-align: center;
  105.  border-radius: 50%;
  106.  border: 1px solid #DDD;
  107.  box-shadow: 0 0 0 3px #FFF;
  108.  color: #AAA;
  109. }
  110. .conM98 .bpM98:hover {
  111.  color: #333;
  112. }
  113. .conM98 input:checked + label + span .pagM98 {
  114.  transform: rotateY(-180deg);
  115. }
  116. .conM98 input:checked + label + span .pagM98 + .pagM98 {
  117.  transform: rotateY(0deg) translateX(-100%);
  118. }
  119. .conM98 input:checked + label.bpM98 {
  120.  margin-left: -92px;
  121. }
  122.  
  123. .bpM98:nth-of-type(2),
  124. .conM98 > span:nth-of-type(1) {
  125.  z-index: 20;
  126. }
  127. .bpM98:nth-of-type(3),
  128. .conM98 > span:nth-of-type(2) {
  129.  z-index: 18;
  130. }
  131. .bpM98:nth-of-type(4),
  132. .conM98 > span:nth-of-type(3) {
  133.  z-index: 16;
  134. }
  135. .bpM98:nth-of-type(5),
  136. .conM98 > span:nth-of-type(4) {
  137.  z-index: 14;
  138. }
  139. .bpM98:nth-of-type(6),
  140. .conM98 > span:nth-of-type(5) {
  141.  z-index: 12;
  142. }
  143. .bpM98:nth-of-type(7),
  144. .conM98 > span:nth-of-type(6) {
  145.  z-index: 10;
  146. }
  147. .bpM98:nth-of-type(8),
  148. .conM98 > span:nth-of-type(7) {
  149.  z-index: 8;
  150. }
  151. .bpM98:nth-of-type(9),
  152. .conM98 > span:nth-of-type(8) {
  153. z-index: 6;
  154. }
  155. .bpM98:nth-of-type(10),
  156. .conM98 > span:nth-of-type(9) {
  157.  z-index: 4;
  158. }
  159. .bpM98:nth-of-type(11),
  160. .conM98 > span:nth-of-type(10) {
  161.  z-index: 2;
  162. }
  163. .conM98 input:checked + label + span, input:checked + .bpM98, input:checked + .porM98.aa {
  164.  animation: inhe .6s both;
  165. }
  166. @keyframes inhe {
  167.  99% {z-index: 20;}
  168.  100% {z-index: inherit;}
  169. }
  170. @keyframes port {
  171.  99% {z-index: 30;}
  172.  100% {z-index: 0;}
  173. }
  174. .porM98.aa > div {
  175.  height: 100%;
  176.  background-position: center;
  177.  border: 10px solid #0006;
  178.  position: relative;
  179.  text-shadow: 1px 1px #000D, -1px 1px #000D, 1px -1px #000D, -1px -1px #000D;
  180.  backface-visibility: hidden;
  181. }
  182. .porM98.aa > div + div {
  183.  position: absolute;
  184.  width: 100%;
  185.  top: 0;
  186.  transform: rotateY(180deg);
  187.  border-color: transparent;
  188.  box-shadow: inset 0 0 0 1px #DDD;
  189.  text-shadow: none;
  190. }
  191. .ttM98 {
  192.  position: absolute;
  193.  top: 50%;
  194.  left: 50%;
  195.  transform: translate(-50%, -50%);
  196.  text-align: center;
  197.  padding: 20px 0;
  198. }
  199. .ttM98::before, .ttM98::after {
  200.  content: "";
  201.  border-top: 2px dotted;
  202.  border-left: 2px dotted;
  203.  border-right: 2px dotted;
  204.  position: absolute;
  205.  width: calc(100% - 20px);
  206.  height: 30px;
  207.  left: 10px;
  208.  opacity: .8;
  209. }
  210. .ttM98:before {
  211.  top: 0;
  212. }
  213. .ttM98:after {
  214.  bottom: 0;
  215.  transform: rotate(180deg);
  216. }
  217. .ttM98 b {
  218.  font: 40px Ruge Boogie;
  219. }
  220. .porM98.aa > div strong, .miM98 {
  221.  position: absolute;
  222.  bottom: 0;
  223.  width: 100%;
  224.  text-align: center;
  225.  text-transform: uppercase;
  226.  letter-spacing: 5px;
  227.  transform: scale(.8);
  228.  transition: .5s;
  229.  left: 0;
  230. }
  231. .porM98.aa > div:hover strong, .miM98:hover {
  232.  transform: scale(1);
  233. }
  234. .pagM98.con {
  235.  border-left: 1px solid #DDD;
  236.  z-index: 1;
  237. }
  238. .pagM98.con::before {
  239.  content: "";
  240.  border: 1px solid #DDD;
  241.  position: absolute;
  242.  top: 10px;
  243.  left: 10px;
  244.  right: 10px;
  245.  bottom: 10px;
  246. }
  247. .miM98 {
  248.  font-weight: bold;
  249.  margin: 0 0 10px -2px;
  250.  z-index: -1;
  251. }
Advertisement
Add Comment
Please, Sign In to add comment