style.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .semi-animation-react-demo-scroll {
  2. height: 300px;
  3. overflow: hidden;
  4. .scrolltop-main {
  5. position: relative;
  6. display: flex;
  7. justify-content: center;
  8. align-items: center;
  9. overflow-y: scroll;
  10. width: 100%;
  11. height: 100%;
  12. }
  13. .scrolltop-c {
  14. margin: 0;
  15. padding: 0;
  16. height: 100%;
  17. width: 100%;
  18. user-select: none;
  19. background: peachpuff;
  20. overflow: auto;
  21. opacity: 0.6;
  22. }
  23. .scrolltop-b {
  24. top: calc(50% - 50px);
  25. left: calc(50% - 50px);
  26. position: absolute;
  27. width: 100px;
  28. height: 100px;
  29. border-radius: 50%;
  30. border: 5px solid white;
  31. background: lavender;
  32. cursor: pointer;
  33. display: flex;
  34. justify-content: center;
  35. align-items: center;
  36. }
  37. .scrolltop-b::after {
  38. content: 'Scroll';
  39. font-size: 1.2em;
  40. font-weight: 100;
  41. color: rgb(106, 86, 112);
  42. }
  43. .scrolltop-b:hover {
  44. background: rgb(217, 203, 218);
  45. }
  46. }