Нет описания

carousel.css 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*轮播效果*/
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. }
  6. .box {
  7. margin-top: 75px;
  8. width: 100%;
  9. height: 300px;
  10. position: relative;
  11. }
  12. .list {
  13. width: 100%;
  14. height: 420px;
  15. overflow: hidden;
  16. position: absolute;
  17. left: 0%;
  18. margin-left: 0px;
  19. }
  20. .btn {
  21. position: absolute;
  22. top: 50%;
  23. margin-top: -50px;
  24. width: 60px;
  25. height: 100px;
  26. line-height: 100px;
  27. font-size: 30px;
  28. color: white;
  29. text-decoration: none;
  30. text-align: center;
  31. background: rgba(0, 255, 0, .5);
  32. cursor: pointer;
  33. }
  34. .next {
  35. right: 0;
  36. }
  37. li {
  38. position: absolute;
  39. top: 0;
  40. left: 0;
  41. list-style: none;
  42. opacity: 0;
  43. transition: all 0.3s ease-out;
  44. }
  45. img {
  46. width: 80%;
  47. border: none;
  48. float: left;
  49. }
  50. .p1 {
  51. transform: translate3d(150px, 0, 0) scale(0.81);
  52. transform-origin: 0 50%;
  53. opacity: 0.8;
  54. z-index: 2;
  55. }
  56. .p2 {
  57. transform: translate3d(0px, 0, 0) scale(0.81);
  58. transform-origin: 0 50%;
  59. opacity: 0.8;
  60. z-index: 2;
  61. }
  62. .p3 {
  63. transform: translate3d(40px, 0, 0) scale(1);
  64. z-index: 3;
  65. opacity: 1;
  66. }
  67. .p4 {
  68. transform: translate3d(449px, 0, 0) scale(0.81);
  69. transform-origin: 100% 50%;
  70. opacity: 0.8;
  71. z-index: 2;
  72. }
  73. .p5 {
  74. transform: translate3d(672px, 0, 0) scale(0.81);
  75. }
  76. .p6 {
  77. transform: translate3d(896px, 0, 0) scale(0.81);
  78. }
  79. .p7 {
  80. transform: translate3d(1120px, 0, 0) scale(0.81);
  81. }
  82. .buttons {
  83. position: absolute;
  84. width: 90%;
  85. /*height: 30px;*/
  86. bottom: -180px;
  87. left: 5%;
  88. /*margin-left: -150px;*/
  89. text-align: center;
  90. padding-top: 10px;
  91. overflow: hidden;
  92. }
  93. .buttons a {
  94. float: left;
  95. display: block;
  96. width: 15%;
  97. margin: 0 8% 0 10%;
  98. }
  99. .buttons a img {
  100. margin: 0 auto;
  101. width: 44px;
  102. height: 44px;
  103. }
  104. span {
  105. display: block;
  106. width: 35px;
  107. height: 1px;
  108. background: red;
  109. }
  110. /*.blue {
  111. background: blue;
  112. }*/