Guest User

Untitled

a guest
Dec 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. /**sphere 5*/
  2.  
  3. body{
  4. height: 100%;
  5. }
  6.  
  7. .container {
  8. top:50%;
  9. margin:auto;
  10. margin-top: -100px;
  11. width: 200px;
  12. height: 200px;
  13. position: relative;
  14. perspective: 800;
  15. }
  16.  
  17.  
  18. .bg{
  19. width:inherit;
  20. height: inherit;
  21. box-shadow: 0 0 0 30px black;
  22. position: absolute;
  23. border-radius: 50%;
  24. }
  25.  
  26. #card {
  27. width: inherit;
  28. height: inherit;
  29. position: absolute;
  30. /*transition: all 0.6s ease-in-out;*/
  31.  
  32. }
  33.  
  34. #card div{
  35. position: absolute;
  36. width: inherit;
  37. height: inherit;
  38. border-radius: 50%;
  39. }
  40.  
  41. #card .front {
  42. background: red;
  43.  
  44. transition: all 0.6s ease-in-out;
  45.  
  46. }
  47.  
  48. #card .back {
  49. opacity:0;
  50. background: blue;
  51. transform: scale(1.5);
  52. transition: all 0.6s ease-in-out;
  53.  
  54. }
  55.  
  56. .container:hover #card .front{
  57. transform: scale(0);
  58. opacity :0;
  59. }
  60.  
  61. .container:hover #card .back{
  62. transform: scale(1);
  63. opacity :1;
  64. }
Add Comment
Please, Sign In to add comment