Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. body{
  2. margin: 0;
  3. padding: 0;
  4. display: flex;
  5. justify-content: center;
  6. align-items: center;
  7. min-height: 100vh;
  8. font-family: 'Poppins', sans-serif;
  9. background: #000000;
  10. }
  11.  
  12. .card{
  13. position: relative;
  14. width: 300px;
  15. height: 400px;
  16. background: #262626;
  17. overflow: hidden;
  18. }
  19.  
  20. input,
  21. .toggle{
  22. position: absolute;
  23. width: 50px;
  24. height: 50px;
  25. bottom: 20px;
  26. right: 20px;
  27. outline: none;
  28. z-index: 10;
  29. }
  30.  
  31. input{
  32. opacity: 0;
  33. }
  34.  
  35. .toggle{
  36. pointer-events: none;
  37. border-radius: 50%;
  38. background: #fff;
  39. transition: 0.5s;
  40. text-align: center;
  41. line-height: 50px;
  42. font-size: 36px;
  43. box-shadow: 0 0 0 0px #9c27b0;
  44. }
  45.  
  46. input:checked ~ .toggle {
  47. box-shadow: 0 0 0 500px #9c27b0;
  48. transform: rotate(225deg)
  49. }
  50.  
  51. .imgBox,
  52. .details
  53. {
  54. position: absolute;
  55. top: 0;
  56. left: 0;
  57. width: 100%;
  58. height: 100%;
  59. }
  60.  
  61. .details{
  62. padding: 20px;
  63. box-sizing: border-box;
  64. z-index: 11;
  65. pointer-events: none;
  66. transition: 0.5s;
  67. opacity: 0;
  68. }
  69.  
  70. input:checked ~ .details{
  71. opacity: 1;
  72. transition-delay: 0.5s;
  73. }
  74.  
  75. .details h2{
  76. margin-bottom: 5px;
  77. color: #fff;
  78. }
  79.  
  80. .details p{
  81. margin: 0;
  82. padding: 0;
  83. color: #fff;
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement