style.scss 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .hc-gradient-card-box {
  2. position: relative;
  3. .hc-gradient-card {
  4. position: relative;
  5. z-index: 2;
  6. border-radius: 6px;
  7. overflow: hidden;
  8. .hc-card-main {
  9. position: relative;
  10. flex: 1;
  11. z-index: 3;
  12. }
  13. }
  14. .hc-gradient-card-bg {
  15. position: relative;
  16. z-index: 2;
  17. text-shadow: 2px 3px 5px rgba(0,0,0,.1);
  18. }
  19. .hc-card-dot {
  20. position: absolute;
  21. z-index: 1;
  22. border-radius: 50%;
  23. transition: all 0.6s cubic-bezier(.08,.82,.17,1);
  24. opacity: .3;
  25. &.hc-card-dot1 {
  26. width: 200px;
  27. height: 200px;
  28. left: 0;
  29. top: auto;
  30. right: auto;
  31. bottom: -150px;
  32. filter: hue-rotate(30deg) brightness(160%);
  33. }
  34. &.hc-card-dot2 {
  35. left: -40px;
  36. top: auto;
  37. right: auto;
  38. bottom: -10px;
  39. width: 150px;
  40. height: 150px;
  41. filter: brightness(80%);
  42. }
  43. &.hc-card-dot3 {
  44. top: -60px;
  45. right: -60px;
  46. opacity: 0.6;
  47. width: 120px;
  48. height: 120px;
  49. filter: brightness(120%);
  50. }
  51. }
  52. .hc-gradient-card-bg {
  53. position: absolute;
  54. z-index: 0;
  55. width: calc(100% - 20px);
  56. height: 15px;
  57. bottom: -7px;
  58. left: 0;
  59. right: 0;
  60. margin: auto;
  61. border-radius: 5px;
  62. // filter: blur(10px);
  63. opacity: 0.2;
  64. }
  65. &:hover {
  66. .hc-card-dot1 {
  67. transform: translateX(-50px) translatey(-180px);
  68. filter: hue-rotate(-30deg) brightness(80%);
  69. }
  70. .hc-card-dot2 {
  71. transform: translateX(150px) translatey(0px);
  72. filter: brightness(120%);
  73. }
  74. .hc-card-dot3 {
  75. filter: brightness(80%);
  76. transform: translateX(-150px) translatey(120px);
  77. }
  78. }
  79. }