Advertisement
onediewreckshun

Updates Box 2 CSS | kimsjongin.tumblr.com

Jun 24th, 2014
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.04 KB | None | 0 0
  1. #candywrapper {/*the container for all 3 boxes (this is why the other boxes get pushed down when you hover one of them)*/
  2.     position:fixed;
  3.     width:130px;
  4.     top:10px;
  5.     left:10px;
  6.     z-index:9999999999999999;
  7.     -webkit-transition: all 0.5s ease-in-out;
  8.     -moz-transition: all 0.5s ease-in-out;
  9.     -o-transition: all 0.5s ease-in-out;
  10. }
  11.  
  12. /* tutorial by kimsjongin.tumblr.com and inspired by thisis-mydesign (please leave this note!)
  13. if you only want one updates tab, erase anything that says #tab2 or #tab3; for instance, on the line that says #tab1, #tab2, #tab3 { change it to just #tab1 { */
  14.  
  15. #titletab {
  16.     display:inline-block;
  17.     color:#999;/*color of the titles on the updates boxes*/
  18.     background:#fff;/*background color of the title tab (just make sure it's the same color as your theme background is)*/
  19.     letter-spacing:0px;
  20.     font-family:calibri;
  21.     font-size:8px;
  22.     text-transform:uppercase;
  23.     margin-left:10px;
  24.     padding:4px 5px 3px 5px;
  25.     -webkit-transition: all 0.5s ease-in-out;
  26.     -moz-transition: all 0.5s ease-in-out;
  27.     -o-transition: all 0.5s ease-in-out;
  28. }
  29.  
  30. #tab2, #tab1, #tab3 {
  31.     margin-bottom:5px;/*space between the tabs*/
  32. }
  33.  
  34. #tab1:hover #titletab, #tab2:hover #titletab, #tab3:hover #titletab {
  35.     margin-left:70px;/*how far the title moves after you hover*/
  36.     letter-spacing:1px;
  37.     -webkit-transition: all 0.5s ease-in-out;
  38.     -moz-transition: all 0.5s ease-in-out;
  39.     -o-transition: all 0.5s ease-in-out;
  40. }
  41.  
  42. #titletab:after{/*the top border (the one that extends first)*/
  43.     content:'';
  44.     position:fixed;
  45.     width:0px;
  46.     height:1px;
  47.     margin-top:5px;
  48.     left:15px;
  49.     background:#999;/*color of the border*/
  50.     -webkit-transition: all 0.5s ease-in-out;
  51.     -moz-transition: all 0.5s ease-in-out;
  52.     -o-transition: all 0.5s ease-in-out;
  53. }
  54.  
  55. #tab1:hover #titletab:after, #tab2:hover #titletab:after, #tab3:hover #titletab:after{
  56.     width:65px;/*width of top line after hover*/
  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. }
  61.  
  62. #titletab:before{
  63.     z-index:999999999999;
  64.     content:'';
  65.     position:fixed;
  66.     width:8px;/*width of lil box*/
  67.     height:8px;/*height of lil box*/
  68.     margin-top:1px;
  69.     left:10px;
  70.     background:#999;/*color of the lil box*/
  71.     border:1px solid #999;/*border color of the lil box*/
  72.     -webkit-transition: all 0.5s ease-in-out;
  73.     -moz-transition: all 0.5s ease-in-out;
  74.     -o-transition: all 0.5s ease-in-out;
  75. }
  76.  
  77. #tab1:hover #titletab:before, #tab2:hover #titletab:before, #tab3:hover #titletab:before {
  78.     background:#fff;/*background color of the lil box after hover*/
  79.     border:1px solid #999;/*border color of the lil box after hover*/
  80.     -webkit-transition: all 0.5s ease-in-out;
  81.     -moz-transition: all 0.5s ease-in-out;
  82.     -o-transition: all 0.5s ease-in-out;
  83. }
  84.  
  85. #in {/*here, you can style the text on the inside as well as the color of the second border*/
  86.     font-size:9px;/*font size*/
  87.     font-family:calibri;/*font; can be arial, baskerville, whatever*/
  88.     padding:0px 10px;
  89.     height:0px;
  90.     width:100px;
  91.     margin-top:-2px;
  92.     margin-left:5px;
  93.     border-left:1px solid #999;/*color of the second border; just change #999 to whatever color you want (pick one at colorpicker.com)*/
  94.     color:transparent;
  95.     overflow:hidden;
  96.     -webkit-transition: all 0.5s ease-in-out;
  97.     -moz-transition: all 0.5s ease-in-out;
  98.     -o-transition: all 0.5s ease-in-out;
  99. }
  100.  
  101. #tab1:hover #in, #tab3:hover #in, #tab2:hover #in{
  102.     color:#999;/*color of the text on the inside*/
  103.     height:95px;/*height of border/text after hovering; if your text doesn't fit in the box, make this bigger*/
  104.     padding:10px;
  105.     margin-top:-9px;
  106.     -webkit-transition: all 0.5s ease-in-out;
  107.     -moz-transition: all 0.5s ease-in-out;
  108.     -o-transition: all 0.5s ease-in-out;
  109.     transition-delay: 0.4s;/*this and the line below are how long you wait before the second line starts to extend down */
  110.     -webkit-transition-delay: 0.4s;
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement