Advertisement
octomoosey

constellation css

Apr 6th, 2015
2,417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. /* paste this section between < style > and < /style > */
  2.  
  3. .constellation {
  4. position: absolute;}
  5.  
  6. .hot-spot {
  7. background-color: #222; /* change the circle background color */
  8. border-radius: 20px;
  9. color: #fff;
  10. padding: 5px;
  11. position: absolute;
  12. text-align: center;
  13. font-size:10px;
  14. line-height:10px;
  15. width: 10px;
  16. height: 10px;
  17. border: 1px solid #fff;} /* change the sthe circle border color */
  18.  
  19. .hot-spot:hover {
  20. background-color: #666; /* change the circle hover color */
  21. -webkit-transition: 0.5s linear;
  22. -webkit-transition: all 0.5s linear;
  23. -moz-transition: all 0.5s linear;
  24. -o-transition: all 0.5s linear;}
  25.  
  26. .hot-spot:hover .boxstuff {
  27. display:block;
  28. opacity:0.8;}
  29.  
  30. /* change the 'star' positions here by altering the top and left values, you can add more stars if you like and this is where you would set the position of them */
  31.  
  32. .star1 {
  33. top: 30px;
  34. left: 20px}
  35.  
  36. .star2 {
  37. top: 60px;
  38. left: 80px;}
  39.  
  40. .star3 {
  41. top: 100px;
  42. left: 60px;}
  43.  
  44. .star4 {
  45. top: 120px;
  46. left: 30px;}
  47.  
  48. .star5 {
  49. top: 150px;
  50. left: 80px;}
  51.  
  52. .boxstuff {
  53. background-color: #222; /* change the hover box background colour */
  54. border: 1px solid #fff; /* change the hover box border color */
  55. color: #fff; /* change the hover box text color */
  56. display:none;
  57. padding: 10px;
  58. position: absolute;
  59. font-size:11px; /* change the hover box font-size here */
  60. top: 13px;
  61. left:13px;
  62. width: 200px;
  63. z-index: 10;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement