Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. /*http://css3.bradshawenterprises.com/transitions/ */
  2. .scherm{
  3. width: 500px;
  4. height: 500px;
  5. border: 1px #aaa solid;
  6. left:10%;
  7. top: 10%;
  8. position: absolute;
  9.  
  10. }
  11. .roodbolletje{
  12. width: 100px;
  13. height: 100px;
  14. background-color: red;
  15. position: absolute;
  16. top: 50%; /*midden*/
  17. left: 50%;
  18. margin:-50px 0 0 -50px;
  19. border-radius: 100%;
  20. -webkit-transition: all 3s ease-in-out;
  21. /*
  22. all value
  23. https://css-tricks.com/almanac/properties/t/transition/
  24.  
  25. In this above example, all ccs properties transition, due to the value β€œall” specified for the transition-property portion of the shorthand.
  26. */
  27. }
  28. .bolletje {
  29. width: 20px;
  30. height: 20px;
  31. background-color: blue;
  32. position: absolute;
  33. top: 50%; /*midden*/
  34. left: 50%;
  35. margin:-10px 0 0 -10px;
  36. border-radius: 100%;
  37. -webkit-transition: all 2s ease-in-out;
  38. }
  39. .b1{
  40. -webkit-transition-delay:0.1s;
  41. }
  42. .b2{
  43. -webkit-transition-delay:0.5s;
  44. }
  45. .b3{
  46. -webkit-transition-delay:0.9s;
  47. }
  48. .b4{
  49. -webkit-transition-delay:1.3s;
  50. }
  51. .b5{
  52. -webkit-transition-delay:1.7s;
  53. }
  54. .b6{
  55. -webkit-transition-delay:2.1s;
  56. }
  57. .b7{
  58. -webkit-transition-delay:2.5s;
  59. }
  60. .b8{
  61. -webkit-transition-delay:2.9s;
  62. }
  63. .scherm:hover .b1 { /*!!!!*/
  64. -webkit-transform: translateX(-240px) translateY(-240px);/*startpunt = midden van scherm*/
  65. }
  66. .scherm:hover .b2 {
  67. -webkit-transform: translateX(240px) translateY(240px);
  68. }
  69.  
  70. .scherm:hover .b3 {
  71. -webkit-transform: translateX(0px) translateY(240px);
  72. }
  73.  
  74. .scherm:hover .b4 {
  75. -webkit-transform: translateX(240px) translateY(-240px);
  76. }
  77.  
  78. .scherm:hover .b5 {
  79. -webkit-transform: translateX(0px) translateY(-240px);
  80. }
  81.  
  82. .scherm:hover .b6 {
  83. -webkit-transform: translateX(-240px) translateY(240px);
  84. }
  85.  
  86. .scherm:hover .b7 {
  87. -webkit-transform: translateX(-240px) translateY(0px);
  88. }
  89.  
  90. .scherm:hover .b8 {
  91. -webkit-transform: translateX(240px) translateY(0px);
  92. }
  93. .scherm:hover .roodbolletje {
  94. opacity:0;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement