hover3d-effects.css 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /** CSS for Hover3D Effects Library **/
  2. /* General Effect Selector Style */
  3. .effect-selector {
  4. position: absolute;
  5. top: 10px;
  6. left: 10px;
  7. padding: 8px 12px;
  8. border-radius: 8px;
  9. border: 1px solid #00d4ff;
  10. background-color: rgba(0, 0, 0, 0.7);
  11. font-size: 14px;
  12. cursor: pointer;
  13. outline: none;
  14. transition: background-color 0.3s, border-color 0.3s;
  15. z-index: 10;
  16. }
  17. .effect-selector:hover {
  18. background-color: rgba(0, 212, 255, 0.8);
  19. border-color: #00aaff;
  20. }
  21. .effect-selector option {
  22. background-color: #000000;
  23. color: #ffffff;
  24. }
  25. /* Canvas Background */
  26. .effect-background {
  27. position: absolute;
  28. top: 0;
  29. left: 0;
  30. width: 100%;
  31. height: 100%;
  32. z-index: -1;
  33. }
  34. /* Atomic Circle Effect Styles */
  35. .atomic-wrapper {
  36. position: absolute;
  37. top: 50%;
  38. left: 50%;
  39. transform: translate(-50%, -50%);
  40. width: 80%;
  41. height: 80%;
  42. z-index: -1;
  43. pointer-events: none;
  44. }
  45. .atomic-center {
  46. width: 20px;
  47. height: 20px;
  48. background-color: rgba(0, 212, 255, 0.7);
  49. border-radius: 50%;
  50. position: absolute;
  51. top: 50%;
  52. left: 50%;
  53. transform: translate(-50%, -50%);
  54. }
  55. .atomic-orbit {
  56. position: absolute;
  57. top: 50%;
  58. left: 50%;
  59. width: 80%;
  60. height: 80%;
  61. border: 2px solid rgba(0, 212, 255, 0.5);
  62. border-radius: 50%;
  63. transform: translate(-50%, -50%);
  64. animation: spinOrbit 6s linear infinite;
  65. }
  66. .atomic-orbit::before {
  67. content: '';
  68. position: absolute;
  69. top: 0%;
  70. left: 50%;
  71. width: 12px;
  72. height: 12px;
  73. background-color: rgba(255, 255, 255, 0.8);
  74. border-radius: 50%;
  75. transform: translate(-50%, -50%);
  76. }
  77. @keyframes spinOrbit {
  78. from { transform: translate(-50%, -50%) rotate(0deg); }
  79. to { transform: translate(-50%, -50%) rotate(360deg); }
  80. }