elisewhite

UTT (Slide-Out) - TR CSS

Dec 18th, 2013
2,550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #container-top-right {
  2. /*don't change anything*/
  3. position:fixed;
  4. z-index:999;
  5. right:0px;
  6. top:0px;
  7.  
  8. /*transition speed: 0.1 = fastest and 1 = slowest*/
  9. -webkit-transition: all .7s ease-in-out;
  10. -moz-transition: all .7s ease-in-out;
  11. -o-transition: all .7s ease-in-out;
  12. }
  13.  
  14. #container-top-right:hover {
  15. top:150px; /*WHAT YOU WILL NEED TO CHANGE ACCORDING TO HOW MANY LINES OF TEXT YOU HAVE (higher number for more text)*/
  16.  
  17. /*transition speed: 0.1 = fastest and 1 = slowest*/
  18. -webkit-transition: all .7s ease-in-out;
  19. -moz-transition: all .7s ease-in-out;
  20. -o-transition: all .7s ease-in-out;
  21. }
  22.  
  23. #text-top-right {
  24. font-size:10px;
  25. font-family:calibri;
  26. text-align:center;
  27. width:100px; /*should match the image width*/
  28. right:10px; /*should match the image margin*/
  29.  
  30. /*don't change anything below this*/
  31. padding:0px 0px 10px 0px;
  32. position:absolute;
  33. bottom:0px;
  34. }
  35.  
  36. #image-top-right img {
  37. width: 100px; /*should match the text width*/
  38. right:10px; /*should match the text margin*/
  39.  
  40. /*don't change anything below this*/
  41. height: auto;
  42. position:absolute;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment