Advertisement
Guest User

css

a guest
Oct 20th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.97 KB | None | 0 0
  1. #playground{
  2. background:silver;
  3. width:40em;
  4. height:40em;
  5. position:relative;
  6. overflow:hidden;}
  7.  
  8.  
  9.  
  10. #playground > #cat{
  11. position:absolute;
  12. top:10em;
  13. left:-10em;
  14. width:10em;
  15. height:12em;
  16. transition:0.1s;
  17. opacity:0;
  18. }
  19.  
  20.  
  21. #playground:hover > #cat{
  22. left:10em;
  23. top:10em;
  24. opacity:1;
  25. transition:3s;}
  26.  
  27. #playground > #dog{
  28. position:absolute;
  29. top:10em;
  30. left:40em;
  31. width:10em;
  32. height:12em;
  33. transition:0.1s;
  34. opacity:0;
  35. }
  36.  
  37.  
  38. #playground:hover > #dog{
  39. left:20em;
  40. top:10em;
  41. opacity:1;
  42. transition:3s;}
  43.  
  44. #playground > #boom{
  45. position:absolute;
  46. top:10em;
  47. left:10em;
  48. width:20em;
  49. height:12em;
  50. transition:0.1s;
  51.  
  52. opacity:0;
  53. }
  54.  
  55.  
  56. #playground:hover > #boom{
  57. left:10em;
  58. top:10em;
  59. opacity:1;
  60. transition:3s;
  61. transition-delay:2s;}
  62.  
  63. #playground > #catdog{
  64. position:absolute;
  65. top:10em;
  66. left:10em;
  67. width:20em;
  68. height:12em;
  69. transition:0.1s;
  70. opacity:0;
  71. }
  72.  
  73.  
  74. #playground:hover > #catdog{
  75. left:10em;
  76. top:10em;
  77. opacity:1;
  78. transition:3s;
  79. transition-delay:2.5s;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement