index.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @import url(music.css);
  2. .container {
  3. position: relative;
  4. width: 390px;
  5. height: 844px;
  6. margin: 0px auto;
  7. background: url('../imags/background/back.png') no-repeat;
  8. background-size: 390px 844px;
  9. /* border: 1px solid rgb(240, 7, 7); */
  10. position: relative;
  11. border-radius: 30px;
  12. }
  13. .container2 {
  14. position: absolute;
  15. top: 70px;
  16. animation: tittlemove alternate infinite 3s ease-in-out;
  17. }
  18. .container2 img {
  19. width: 390px;
  20. }
  21. .word{
  22. position: absolute;
  23. top:330px;
  24. left:-31px;
  25. }
  26. .word>img{
  27. width:450px;
  28. height: 350px;
  29. animation: tittlemove3 alternate infinite 1.5s ease-in-out;
  30. }
  31. .container3 img {
  32. position: absolute;
  33. left: 50%;
  34. transform: translate(-50%);
  35. bottom: 50px;
  36. cursor: pointer;
  37. animation: tittlemove2 alternate infinite 4s ease-in-out;
  38. }
  39. .container4 img {
  40. position: absolute;
  41. width: 70px;
  42. bottom: 140px;
  43. left: 40px;
  44. }
  45. @keyframes tittlemove {
  46. 0% {}
  47. 50% {
  48. transform: translateY(-5px);
  49. }
  50. 100% {
  51. transform: translateY(5px);
  52. }
  53. }
  54. @keyframes tittlemove2 {
  55. 0% {
  56. transform: translateX(-50%);
  57. }
  58. 50% {
  59. transform: translate(-50%,-5px);
  60. }
  61. 100% {
  62. transform: translate(-50%,5px);
  63. }
  64. }
  65. @keyframes tittlemove3 {
  66. 0% {}
  67. 50% {
  68. transform: translateY(-5px);
  69. }
  70. 100% {
  71. transform: translateY(5px);
  72. }
  73. }