No Description

carousel.css 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. .list ul li a{
  46. width: 80%;
  47. height: 390px;
  48. display: block;
  49. }
  50. img {
  51. width: 100%;
  52. border: none;
  53. float: left;
  54. height:100%;
  55. }
  56. .p1 {
  57. transform: translate3d(150px, 0, 0) scale(0.81);
  58. transform-origin: 0 50%;
  59. opacity: 0.8;
  60. z-index: 2;
  61. }
  62. .p2 {
  63. transform: translate3d(0px, 0, 0) scale(0.81);
  64. transform-origin: 0 50%;
  65. opacity: 0.8;
  66. z-index: 2;
  67. }
  68. .p3 {
  69. transform: translate3d(40px, 0, 0) scale(1);
  70. z-index: 3;
  71. opacity: 1;
  72. }
  73. .p4 {
  74. transform: translate3d(449px, 0, 0) scale(0.81);
  75. transform-origin: 100% 50%;
  76. opacity: 0.8;
  77. z-index: 2;
  78. }
  79. .p5 {
  80. transform: translate3d(672px, 0, 0) scale(0.81);
  81. }
  82. .p6 {
  83. transform: translate3d(896px, 0, 0) scale(0.81);
  84. }
  85. .p7 {
  86. transform: translate3d(1120px, 0, 0) scale(0.81);
  87. }
  88. .buttons {
  89. position: absolute;
  90. width: 90%;
  91. /*height: 30px;*/
  92. bottom: -180px;
  93. left: 5%;
  94. /*margin-left: -150px;*/
  95. text-align: center;
  96. padding-top: 10px;
  97. overflow: hidden;
  98. }
  99. .buttons a {
  100. float: left;
  101. display: block;
  102. width: 15%;
  103. margin: 0 8% 0 10%;
  104. }
  105. .buttons a img {
  106. margin: 0 auto;
  107. width: 44px;
  108. height: 44px;
  109. }
  110. /*span {
  111. display: block;
  112. width: 35px;
  113. height: 1px;
  114. background: red;
  115. }*/
  116. /*.blue {
  117. background: blue;
  118. }*/