bychloethemes

CSS Updates Tab 3 - by Chloe

Jul 16th, 2015
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. /* Updates Tab by Chloe | @dontbrag | @bychloethemes */
  2. /* only change the things with comments next to them */
  3. #update {
  4.  
  5. font-size: 10px;
  6. font-family: verdana; /*font*/
  7. display: block;
  8. z-index: 9999;
  9. }
  10. #heart {
  11. position: absolute;
  12. width: 100px;
  13. height: 90px;
  14. }
  15. #heart:before,
  16. #heart:after {
  17. position: absolute;
  18. content: "";
  19. left: 70px; /*distance from left*/
  20. top: 20px; /*distance from top*/
  21. width: 50px;
  22. height: 80px;
  23. background: rgba(255,0,154,1); /*change the heart colour here, must be rgba, only change the first 3 numbers*/
  24. -moz-border-radius: 50px 50px 0 0;
  25. border-radius: 50px 50px 0 0;
  26. -webkit-transform: rotate(-45deg);
  27. -moz-transform: rotate(-45deg);
  28. -ms-transform: rotate(-45deg);
  29. -o-transform: rotate(-45deg);
  30. transform: rotate(-45deg);
  31. -webkit-transform-origin: 0 100%;
  32. -moz-transform-origin: 0 100%;
  33. -ms-transform-origin: 0 100%;
  34. -o-transform-origin: 0 100%;
  35. transform-origin: 0 100%;
  36. -webkit-transition: all 0.5s ease-in-out;
  37. -moz-transition: all 0.5s ease-in-out;
  38. -o-transition: all 0.5s ease-in-out;
  39. transition: all 0.5s ease-in-out;
  40. -webkit-transition-delay: 0.1s;
  41. -moz-transition-delay: 0.1s;
  42. -o-transition-delay: 0.1s;
  43. transition-delay: 0.1s;
  44. }
  45. #heart:after {
  46. left: 20px;
  47. -webkit-transform: rotate(45deg);
  48. -moz-transform: rotate(45deg);
  49. -ms-transform: rotate(45deg);
  50. -o-transform: rotate(45deg);
  51. transform: rotate(45deg);
  52. -webkit-transform-origin: 100% 100%;
  53. -moz-transform-origin: 100% 100%;
  54. -ms-transform-origin: 100% 100%;
  55. -o-transform-origin: 100% 100%;
  56. transform-origin :100% 100%;
  57. -webkit-transition: all 0.5s ease-in-out;
  58. -moz-transition: all 0.5s ease-in-out;
  59. -o-transition: all 0.5s ease-in-out;
  60. transition: all 0.5s ease-in-out;
  61. -webkit-transition-delay: 0.1s;
  62. -moz-transition-delay: 0.1s;
  63. -o-transition-delay: 0.1s;
  64. transition-delay: 0.1s;
  65. }
  66. #update:hover #heart:before, #update:hover #heart:after{
  67. width:150px;
  68. height:200px;
  69. border: 1px solid rgba(255,0,154,0.7); /*border after hover, must be rgba, only change the first 3 numbers*/
  70. background: rgba(255,255,255,0.4); /*background after hover, must be rgba, only change the first 3 numbers*/
  71. border-radius: 5px;
  72. left:25px;
  73. -webkit-transform: rotate(0deg);
  74. -moz-transform: rotate(0deg);
  75. -ms-transform: rotate(0deg);
  76. -o-transform: rotate(0deg);
  77. transform: rotate(0deg);
  78. -webkit-transition: all 0.5s ease-in-out;
  79. -moz-transition: all 0.5s ease-in-out;
  80. -o-transition: all 0.5s ease-in-out;
  81. transition: all 0.5s ease-in-out;
  82. }
  83. #updateinfo {
  84. position: absolute;
  85. width:135px;
  86. height: 0px;
  87. overflow: hidden;
  88. top:35px;
  89. left:41px;
  90. opacity: 0;
  91. -webkit-transition: all 0.3s ease-in-out;
  92. -moz-transition: all 0.3s ease-in-out;
  93. -o-transition: all 0.3s ease-in-out;
  94. transition: all 0.3s ease-in-out;
  95. }
  96. #update:hover #updateinfo {
  97. display: block;
  98. opacity: 1;
  99. height: 190px; /*the height of the tab after hover*/
  100. overflow-y: scroll; /*change scroll to hidden if you dont want it to scroll*/
  101. -webkit-transition: all 0.5s ease-in-out;
  102. -moz-transition: all 0.5s ease-in-out;
  103. -o-transition: all 0.5s ease-in-out;
  104. transition: all 0.5s ease-in-out;
  105. -webkit-transition-delay: 0.3s;
  106. -moz-transition-delay: 0.3s;
  107. -o-transition-delay: 0.3s;
  108. transition-delay: 0.3s;
  109. }
  110. #updateinfo .heading {
  111. visibility: none;
  112. display: block;
  113. opacity: 0;
  114. width:100%;
  115. text-align:center;
  116. background:#fff; /* Heading background colour */
  117. color:#000; /* Heading font colour */
  118. margin:3px 0px;
  119. padding: 2px 0px;
  120. -webkit-transition: all 0.3s ease-in-out;
  121. -moz-transition: all 0.3s ease-in-out;
  122. -o-transition: all 0.3s ease-in-out;
  123. transition: all 0.3s ease-in-out;
  124. }
  125. #update:hover #updateinfo .heading {
  126. display: block;
  127. visibility: visible;
  128. opacity: 1;
  129. -webkit-transition: all 0.5s ease-in-out;
  130. -moz-transition: all 0.5s ease-in-out;
  131. -o-transition: all 0.5s ease-in-out;
  132. transition: all 0.5s ease-in-out;
  133. -webkit-transition-delay: 0.3s;
  134. -moz-transition-delay: 0.3s;
  135. -o-transition-delay: 0.3s;
  136. transition-delay: 0.3s;
  137. }
  138. /* Updates Tab by Chloe | @dontbrag | @bychloethemes */
Advertisement
Add Comment
Please, Sign In to add comment