style.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .wrapper {
  2. overflow-x: hidden;
  3. -o-transition: all 0.5s ease-in-out;
  4. -moz-transition: all 0.5s ease-in-out;
  5. -webkit-transition: all 0.5s ease-in-out;
  6. transition: all 0.5s ease-in-out;
  7. }
  8. .menu {
  9. margin-top: 230px;
  10. width: 20%;
  11. height: 50vh;
  12. background: rgb(245, 142, 104);
  13. justify-content: center;
  14. align-items: center;
  15. transition: 1s;
  16. cursor: pointer;
  17. transform: translateX(-90%);
  18. }
  19. .menu:hover {
  20. transform: translateX(0%);
  21. transition: 2s;
  22. background: rgb(192, 81, 40);
  23. }
  24. .menu-list {
  25. display: flex;
  26. justify-content: space-around;
  27. align-items: center;
  28. height: 50%;
  29. flex-direction: column;
  30. }
  31. .menu-list a {
  32. font-weight: 900;
  33. text-decoration: none;
  34. text-transform: uppercase;
  35. color: white;
  36. }
  37. .menu-list a:hover {
  38. color: yellow;
  39. }
  40. @keyframes bouncing {
  41. 0% {
  42. transform: translateY(0)
  43. }
  44. 25% {
  45. transform: translateY(200px)
  46. }
  47. 50% {
  48. transform: translate(200px, 200px)
  49. }
  50. 75% {
  51. transform: translate(200px, 0px)
  52. }
  53. }
  54. @keyframes change_color {
  55. 0% {
  56. background: rgba(255, 0, 0, 0.925)
  57. }
  58. 25% {
  59. background: rgba(17, 0, 255, 0.5)
  60. }
  61. 50% {
  62. background: rgba(21, 255, 0, 0.5)
  63. }
  64. 75% {
  65. background: rgba(255, 208, 0, 0.938)
  66. }
  67. }
  68. .square {
  69. width: 100px;
  70. height: 100px;
  71. background: rgb(167, 47, 47);
  72. animation: bouncing 2s cubic-bezier(0.5, 0.5, 0.5, 0.5) 2s infinite, change_color 2s cubic-bezier(0.5, 0.5, 0.5, 0.5) 2s infinite;
  73. }