features.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <template>
  2. <div class="features">
  3. <div class="container">
  4. <div class="top clearfix">
  5. <div class="title">
  6. <p>Five major features</p>
  7. <h2>五大特点</h2>
  8. </div>
  9. </div>
  10. <ul class="content clearfix list-unstyled">
  11. <li v-for="(data, index) in featureData" :class="{'moveTop': isTop}"
  12. @mouseenter="isTop = true"
  13. @mouseleave="isTop = false">
  14. <div>
  15. <p>{{data.illustrationF}}</p>
  16. <p class="illustration">{{data.illustrationS}}</p>
  17. </div>
  18. </li>
  19. </ul>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'FiveFeature',
  26. data () {
  27. return {
  28. featureData: [{
  29. illustrationF: '颠覆传统ERP及',
  30. illustrationS: '管理软件市场模式'
  31. }, {
  32. illustrationF: '平台用户的链式',
  33. illustrationS: '反应式发展'
  34. }, {
  35. illustrationF: '企业信息化',
  36. illustrationS: '全面解决方案'
  37. }, {
  38. illustrationF: '全过程的移动',
  39. illustrationS: '互联解决方案'
  40. }, {
  41. illustrationF: ' 全智能的',
  42. illustrationS: '交易平台'
  43. }],
  44. timerIndex: 0,
  45. isTop: false
  46. }
  47. }
  48. // mounted () {
  49. // this.$nextTick(() => {
  50. // this.changeInterval(true)
  51. // })
  52. // },
  53. // methods: {
  54. // changeInterval: function (flag) {
  55. // if (flag) {
  56. // this.timer = setInterval(() => {
  57. // this.timerIndex ++
  58. // if (this.timerIndex % 2 === 0) {
  59. // this.isTop = true
  60. // this.isBottom = false
  61. // } else {
  62. // this.isTop = false
  63. // this.isBottom = true
  64. // }
  65. // }, 3000)
  66. // } else {
  67. // clearInterval(this.timer)
  68. // }
  69. // }
  70. // }
  71. }
  72. </script>
  73. <style type="text/scss" lang="scss" scoped>
  74. @keyframes featureTop {
  75. 0%{transform: translate3d(0, 0px, 0);}
  76. 50%{transform: translate3d(0, 40px, 0);}
  77. 100%{transform: translate3d(0, 0px, 0);}
  78. }
  79. @-webkit-keyframes featureTop {
  80. 0%{transform: translate3d(0, 0px, 0);}
  81. 50%{transform: translate3d(0, 40px, 0);}
  82. 100%{transform: translate3d(0, 0px, 0);}
  83. }
  84. @-moz-keyframes featureTop {
  85. 0%{transform: translate3d(0, 0px, 0);}
  86. 50%{transform: translate3d(0, 40px, 0);}
  87. 100%{transform: translate3d(0, 0px, 0);}
  88. }
  89. @-o-keyframes featureTop {
  90. 0%{transform: translate3d(0, 0px, 0);}
  91. 50%{transform: translate3d(0, 40px, 0);}
  92. 100%{transform: translate3d(0, 0px, 0);}
  93. }
  94. @keyframes featureBottom {
  95. 0%{transform: translate3d(0, 40px, 0);}
  96. 50%{transform: translate3d(0, 0px, 0);}
  97. 100%{transform: translate3d(0, 40px, 0);}
  98. }
  99. @-webkit-keyframes featureBottom {
  100. 0%{transform: translate3d(0, 40px, 0);}
  101. 50%{transform: translate3d(0, 0px, 0);}
  102. 100%{transform: translate3d(0, 40px, 0);}
  103. }
  104. @-moz-keyframes featureBottom {
  105. 0%{transform: translate3d(0, 40px, 0);}
  106. 50%{transform: translate3d(0, 0px, 0);}
  107. 100%{transform: translate3d(0, 40px, 0);}
  108. }
  109. @-o-keyframes featureBottom {
  110. 0%{transform: translate3d(0, 40px, 0);}
  111. 50%{transform: translate3d(0, 0px, 0);}
  112. 100%{transform: translate3d(0, 40px, 0);}
  113. }
  114. .features{
  115. width: 100%;
  116. min-width: 1190px;
  117. height: 464px;
  118. background-color: #f7f7f7;
  119. .container{
  120. width: 1190px;
  121. margin: 0 auto;
  122. .top{
  123. padding-top:30px;
  124. margin-bottom:50px;
  125. .title{
  126. margin: 0 auto;
  127. text-align: center;
  128. width:215px;
  129. border-bottom:1px solid #ff7070;
  130. p{
  131. margin:0;
  132. font-size: 14px;
  133. color: #666;
  134. }
  135. h2{
  136. font-size: 32px;
  137. margin:0;
  138. line-height: 46px;
  139. color: #333;
  140. }
  141. &::before{
  142. content: '';
  143. display:block;
  144. position:relative;
  145. left:55px;
  146. top:61px;
  147. width:105px;
  148. height:1px;
  149. background: #00caff;
  150. }
  151. &::after{
  152. content: '';
  153. display:block;
  154. position:relative;
  155. left:55px;
  156. top:4px;
  157. width:105px;
  158. height:1px;
  159. background: #4391f7;
  160. }
  161. }
  162. }
  163. .content{
  164. width: 1000px;
  165. height: 228px;
  166. margin: 0 auto;
  167. padding-left: 3px;
  168. li{
  169. float: left;
  170. height: 228px;
  171. width: 165px;
  172. margin-right: 42px;
  173. &:nth-child(5){
  174. margin-right: 0px;
  175. }
  176. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  177. div{
  178. top: 0px;
  179. transform: translate3d(0, 40px, 0);
  180. animation: featureTop 15s linear infinite;
  181. -moz-animation: featureTop 15s linear infinite;
  182. -o-animation: featureTop 15s linear infinite;
  183. -webkit-animation: featureTop 15s linear infinite;
  184. }
  185. }
  186. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  187. div{
  188. top: 0px;
  189. transform: translate3d(0, 0px, 0);
  190. -webkit-transform-style: preserve-3d;
  191. -webkit-backface-visibility: hidden;
  192. animation: featureBottom 15s linear infinite;
  193. -moz-animation: featureBottom 15s linear infinite;
  194. -o-animation: featureBottom 15s linear infinite;
  195. -webkit-animation: featureBottom 15s linear infinite;
  196. }
  197. }
  198. div{
  199. width: 163px;
  200. height: 186px;
  201. padding-top:80px;
  202. position: relative;
  203. background: url('/images/btbBusiness/feature-bg0.png') no-repeat center;
  204. &:hover{
  205. cursor: pointer;
  206. background: url('/images/btbBusiness/feature-bg1.png') no-repeat center;
  207. p{
  208. color: #2d84fd;
  209. }
  210. }
  211. p {
  212. margin: 0px;
  213. font-size: 18px;
  214. text-align: center;
  215. width: 100%;
  216. color: #fff;
  217. &:last-child{
  218. font-weight: bold;
  219. }
  220. }
  221. }
  222. }
  223. .moveTop {
  224. &:nth-child(2), &:nth-child(4), &:nth-child(6) {
  225. div {
  226. animation-play-state: paused;
  227. -webkit-animation-play-state: paused;
  228. transform: translateZ(0);
  229. }
  230. }
  231. &:nth-child(1), &:nth-child(3), &:nth-child(5) {
  232. div {
  233. animation-play-state: paused;
  234. -webkit-animation-play-state: paused;
  235. transform: translateZ(0);
  236. }
  237. }
  238. }
  239. /* .move{
  240. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  241. div{
  242. top: 40px;
  243. animation: featureTop 3s linear infinite;
  244. -moz-animation: featureTop 3s linear infinite;
  245. -o-animation: featureTop 3s linear infinite;
  246. -webkit-animation: featureTop 3s linear infinite;
  247. }
  248. }
  249. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  250. div{
  251. top: 0px;
  252. animation: featureBottom 3s linear infinite;
  253. -moz-animation: featureBottom 3s linear infinite;
  254. -o-animation: featureBottom 3s linear infinite;
  255. -webkit-animation: featureBottom 3s linear infinite;
  256. }
  257. }
  258. }*/
  259. /* .moveBottom {
  260. &:nth-child(2), &:nth-child(4), &:nth-child(6) {
  261. div {
  262. top: 0px;
  263. }
  264. }
  265. &:nth-child(1), &:nth-child(3), &:nth-child(5) {
  266. div {
  267. top: 40px;
  268. }
  269. }
  270. }
  271. .moveTop{
  272. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  273. div{
  274. top: 40px;
  275. }
  276. }
  277. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  278. div{
  279. top: 0px;
  280. }
  281. }
  282. }*/
  283. }
  284. }
  285. }
  286. </style>