arrow.style.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*:root {
  2. --main-color: #EE0033;
  3. --background-color-1: #eef5fb;
  4. --star-color: #ffc911;
  5. }*/
  6. /*:root {
  7. --main-color: #F36F21;
  8. --background-color-1: #eef5fb;
  9. --star-color: #ffc911;
  10. }*/
  11. :root {
  12. --main-color: #FF8603;
  13. --background-color-1: #eef5fb;
  14. --star-color: #ffc911;
  15. }
  16. .arrow {
  17. position: absolute;
  18. top: 0px;
  19. right: 25px;
  20. transform: translate(-50%,-50%);
  21. /*margin-top: 40px;*/
  22. }
  23. .arrow span {
  24. display: block;
  25. width: 15px;
  26. height: 15px;
  27. border-bottom: 5px solid #06A8FF;
  28. border-right: 5px solid #06A8FF;
  29. transform: rotate(45deg);
  30. margin: -10px;
  31. animation: animate 2s infinite;
  32. }
  33. .arrow span:nth-child(2) {
  34. animation-delay: -0.2s;
  35. }
  36. .arrow span:nth-child(3) {
  37. animation-delay: -0.4s;
  38. }
  39. @keyframes animate {
  40. 0% {
  41. opacity: 0;
  42. transform: rotate(45deg) translate(-20px,-20px);
  43. }
  44. 50% {
  45. opacity: 1;
  46. }
  47. 100% {
  48. opacity: 0;
  49. transform: rotate(45deg) translate(20px,20px);
  50. }
  51. }
  52. .arrow-rotate {
  53. transform: rotate(180deg);
  54. right: 30px;
  55. }