features.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. illustrationF: '平台用户的链式',
  45. illustrationS: '反应式发展'
  46. }],
  47. timerIndex: 0,
  48. isTop: false
  49. }
  50. }
  51. // mounted () {
  52. // this.$nextTick(() => {
  53. // this.changeInterval(true)
  54. // })
  55. // },
  56. // methods: {
  57. // changeInterval: function (flag) {
  58. // if (flag) {
  59. // this.timer = setInterval(() => {
  60. // this.timerIndex ++
  61. // if (this.timerIndex % 2 === 0) {
  62. // this.isTop = true
  63. // this.isBottom = false
  64. // } else {
  65. // this.isTop = false
  66. // this.isBottom = true
  67. // }
  68. // }, 3000)
  69. // } else {
  70. // clearInterval(this.timer)
  71. // }
  72. // }
  73. // }
  74. }
  75. </script>
  76. <style type="text/scss" lang="scss" scoped>
  77. @keyframes featureTop {
  78. 0%{transform: translate3d(0, 0px, 0);}
  79. 50%{transform: translate3d(0, 40px, 0);}
  80. 100%{transform: translate3d(0, 0px, 0);}
  81. }
  82. @-webkit-keyframes featureTop {
  83. 0%{transform: translate3d(0, 0px, 0);}
  84. 50%{transform: translate3d(0, 40px, 0);}
  85. 100%{transform: translate3d(0, 0px, 0);}
  86. }
  87. @-moz-keyframes featureTop {
  88. 0%{transform: translate3d(0, 0px, 0);}
  89. 50%{transform: translate3d(0, 40px, 0);}
  90. 100%{transform: translate3d(0, 0px, 0);}
  91. }
  92. @-o-keyframes featureTop {
  93. 0%{transform: translate3d(0, 0px, 0);}
  94. 50%{transform: translate3d(0, 40px, 0);}
  95. 100%{transform: translate3d(0, 0px, 0);}
  96. }
  97. @keyframes featureBottom {
  98. 0%{transform: translate3d(0, 40px, 0);}
  99. 50%{transform: translate3d(0, 0px, 0);}
  100. 100%{transform: translate3d(0, 40px, 0);}
  101. }
  102. @-webkit-keyframes featureBottom {
  103. 0%{transform: translate3d(0, 40px, 0);}
  104. 50%{transform: translate3d(0, 0px, 0);}
  105. 100%{transform: translate3d(0, 40px, 0);}
  106. }
  107. @-moz-keyframes featureBottom {
  108. 0%{transform: translate3d(0, 40px, 0);}
  109. 50%{transform: translate3d(0, 0px, 0);}
  110. 100%{transform: translate3d(0, 40px, 0);}
  111. }
  112. @-o-keyframes featureBottom {
  113. 0%{transform: translate3d(0, 40px, 0);}
  114. 50%{transform: translate3d(0, 0px, 0);}
  115. 100%{transform: translate3d(0, 40px, 0);}
  116. }
  117. .features{
  118. width: 100%;
  119. min-width: 1190px;
  120. height: 464px;
  121. background-color: #f7f7f7;
  122. .container{
  123. width: 1190px;
  124. margin: 0 auto;
  125. .top{
  126. padding-top:30px;
  127. margin-bottom:50px;
  128. .title{
  129. margin: 0 auto;
  130. text-align: center;
  131. width:215px;
  132. border-bottom:1px solid #ff7070;
  133. p{
  134. margin:0;
  135. font-size: 14px;
  136. color: #666;
  137. }
  138. h2{
  139. font-size: 32px;
  140. margin:0;
  141. line-height: 46px;
  142. color: #333;
  143. }
  144. &::before{
  145. content: '';
  146. display:block;
  147. position:relative;
  148. left:55px;
  149. top:61px;
  150. width:105px;
  151. height:1px;
  152. background: #00caff;
  153. }
  154. &::after{
  155. content: '';
  156. display:block;
  157. position:relative;
  158. left:55px;
  159. top:4px;
  160. width:105px;
  161. height:1px;
  162. background: #4391f7;
  163. }
  164. }
  165. }
  166. .content{
  167. width: 1140px;
  168. height: 228px;
  169. margin: 0 auto;
  170. padding-left: 3px;
  171. li{
  172. float: left;
  173. height: 228px;
  174. width: 165px;
  175. margin-right: 29px;
  176. &:nth-child(6){
  177. margin-right: 0px;
  178. }
  179. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  180. div{
  181. top: 0px;
  182. transform: translate3d(0, 40px, 0);
  183. animation: featureTop 15s linear infinite;
  184. -moz-animation: featureTop 15s linear infinite;
  185. -o-animation: featureTop 15s linear infinite;
  186. -webkit-animation: featureTop 15s linear infinite;
  187. }
  188. }
  189. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  190. div{
  191. top: 0px;
  192. transform: translate3d(0, 0px, 0);
  193. -webkit-transform-style: preserve-3d;
  194. -webkit-backface-visibility: hidden;
  195. animation: featureBottom 15s linear infinite;
  196. -moz-animation: featureBottom 15s linear infinite;
  197. -o-animation: featureBottom 15s linear infinite;
  198. -webkit-animation: featureBottom 15s linear infinite;
  199. }
  200. }
  201. div{
  202. width: 163px;
  203. height: 186px;
  204. padding-top:80px;
  205. position: relative;
  206. background: url('/images/btbBusiness/feature-bg0.png') no-repeat center;
  207. &:hover{
  208. cursor: pointer;
  209. background: url('/images/btbBusiness/feature-bg1.png') no-repeat center;
  210. p{
  211. color: #2d84fd;
  212. }
  213. }
  214. p {
  215. margin: 0px;
  216. font-size: 18px;
  217. text-align: center;
  218. width: 100%;
  219. color: #fff;
  220. &:last-child{
  221. font-weight: bold;
  222. }
  223. }
  224. }
  225. }
  226. .moveTop {
  227. &:nth-child(2), &:nth-child(4), &:nth-child(6) {
  228. div {
  229. animation-play-state: paused;
  230. -webkit-animation-play-state: paused;
  231. transform: translateZ(0);
  232. }
  233. }
  234. &:nth-child(1), &:nth-child(3), &:nth-child(5) {
  235. div {
  236. animation-play-state: paused;
  237. -webkit-animation-play-state: paused;
  238. transform: translateZ(0);
  239. }
  240. }
  241. }
  242. /* .move{
  243. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  244. div{
  245. top: 40px;
  246. animation: featureTop 3s linear infinite;
  247. -moz-animation: featureTop 3s linear infinite;
  248. -o-animation: featureTop 3s linear infinite;
  249. -webkit-animation: featureTop 3s linear infinite;
  250. }
  251. }
  252. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  253. div{
  254. top: 0px;
  255. animation: featureBottom 3s linear infinite;
  256. -moz-animation: featureBottom 3s linear infinite;
  257. -o-animation: featureBottom 3s linear infinite;
  258. -webkit-animation: featureBottom 3s linear infinite;
  259. }
  260. }
  261. }*/
  262. /* .moveBottom {
  263. &:nth-child(2), &:nth-child(4), &:nth-child(6) {
  264. div {
  265. top: 0px;
  266. }
  267. }
  268. &:nth-child(1), &:nth-child(3), &:nth-child(5) {
  269. div {
  270. top: 40px;
  271. }
  272. }
  273. }
  274. .moveTop{
  275. &:nth-child(2), &:nth-child(4), &:nth-child(6){
  276. div{
  277. top: 40px;
  278. }
  279. }
  280. &:nth-child(1), &:nth-child(3), &:nth-child(5){
  281. div{
  282. top: 0px;
  283. }
  284. }
  285. }*/
  286. }
  287. }
  288. }
  289. </style>