| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <template>
- <div class="features">
- <div class="container">
- <div class="top clearfix">
- <div class="title">
- <p>Five major features</p>
- <h2>五大特点</h2>
- </div>
- </div>
- <ul class="content clearfix list-unstyled">
- <li v-for="(data, index) in featureData" :class="{'moveTop': isTop}"
- @mouseenter="isTop = true"
- @mouseleave="isTop = false">
- <div>
- <p>{{data.illustrationF}}</p>
- <p class="illustration">{{data.illustrationS}}</p>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'FiveFeature',
- data () {
- return {
- featureData: [{
- illustrationF: '颠覆传统ERP及',
- illustrationS: '管理软件市场模式'
- }, {
- illustrationF: '平台用户的链式',
- illustrationS: '反应式发展'
- }, {
- illustrationF: '企业信息化',
- illustrationS: '全面解决方案'
- }, {
- illustrationF: '全过程的移动',
- illustrationS: '互联解决方案'
- }, {
- illustrationF: ' 全智能的',
- illustrationS: '交易平台'
- }, {
- illustrationF: '平台用户的链式',
- illustrationS: '反应式发展'
- }],
- timerIndex: 0,
- isTop: false
- }
- }
- // mounted () {
- // this.$nextTick(() => {
- // this.changeInterval(true)
- // })
- // },
- // methods: {
- // changeInterval: function (flag) {
- // if (flag) {
- // this.timer = setInterval(() => {
- // this.timerIndex ++
- // if (this.timerIndex % 2 === 0) {
- // this.isTop = true
- // this.isBottom = false
- // } else {
- // this.isTop = false
- // this.isBottom = true
- // }
- // }, 3000)
- // } else {
- // clearInterval(this.timer)
- // }
- // }
- // }
- }
- </script>
- <style type="text/scss" lang="scss" scoped>
- @keyframes featureTop {
- 0%{transform: translate3d(0, 0px, 0);}
- 50%{transform: translate3d(0, 40px, 0);}
- 100%{transform: translate3d(0, 0px, 0);}
- }
- @-webkit-keyframes featureTop {
- 0%{transform: translate3d(0, 0px, 0);}
- 50%{transform: translate3d(0, 40px, 0);}
- 100%{transform: translate3d(0, 0px, 0);}
- }
- @-moz-keyframes featureTop {
- 0%{transform: translate3d(0, 0px, 0);}
- 50%{transform: translate3d(0, 40px, 0);}
- 100%{transform: translate3d(0, 0px, 0);}
- }
- @-o-keyframes featureTop {
- 0%{transform: translate3d(0, 0px, 0);}
- 50%{transform: translate3d(0, 40px, 0);}
- 100%{transform: translate3d(0, 0px, 0);}
- }
- @keyframes featureBottom {
- 0%{transform: translate3d(0, 40px, 0);}
- 50%{transform: translate3d(0, 0px, 0);}
- 100%{transform: translate3d(0, 40px, 0);}
- }
- @-webkit-keyframes featureBottom {
- 0%{transform: translate3d(0, 40px, 0);}
- 50%{transform: translate3d(0, 0px, 0);}
- 100%{transform: translate3d(0, 40px, 0);}
- }
- @-moz-keyframes featureBottom {
- 0%{transform: translate3d(0, 40px, 0);}
- 50%{transform: translate3d(0, 0px, 0);}
- 100%{transform: translate3d(0, 40px, 0);}
- }
- @-o-keyframes featureBottom {
- 0%{transform: translate3d(0, 40px, 0);}
- 50%{transform: translate3d(0, 0px, 0);}
- 100%{transform: translate3d(0, 40px, 0);}
- }
- .features{
- width: 100%;
- min-width: 1190px;
- height: 464px;
- background-color: #f7f7f7;
- .container{
- width: 1190px;
- margin: 0 auto;
- .top{
- padding-top:30px;
- margin-bottom:50px;
- .title{
- margin: 0 auto;
- text-align: center;
- width:215px;
- border-bottom:1px solid #ff7070;
- p{
- margin:0;
- font-size: 14px;
- color: #666;
- }
- h2{
- font-size: 32px;
- margin:0;
- line-height: 46px;
- color: #333;
- }
- &::before{
- content: '';
- display:block;
- position:relative;
- left:55px;
- top:61px;
- width:105px;
- height:1px;
- background: #00caff;
- }
- &::after{
- content: '';
- display:block;
- position:relative;
- left:55px;
- top:4px;
- width:105px;
- height:1px;
- background: #4391f7;
- }
- }
- }
- .content{
- width: 1140px;
- height: 228px;
- margin: 0 auto;
- padding-left: 3px;
- li{
- float: left;
- height: 228px;
- width: 165px;
- margin-right: 29px;
- &:nth-child(6){
- margin-right: 0px;
- }
- &:nth-child(2), &:nth-child(4), &:nth-child(6){
- div{
- top: 0px;
- transform: translate3d(0, 40px, 0);
- animation: featureTop 15s linear infinite;
- -moz-animation: featureTop 15s linear infinite;
- -o-animation: featureTop 15s linear infinite;
- -webkit-animation: featureTop 15s linear infinite;
- }
- }
- &:nth-child(1), &:nth-child(3), &:nth-child(5){
- div{
- top: 0px;
- transform: translate3d(0, 0px, 0);
- -webkit-transform-style: preserve-3d;
- -webkit-backface-visibility: hidden;
- animation: featureBottom 15s linear infinite;
- -moz-animation: featureBottom 15s linear infinite;
- -o-animation: featureBottom 15s linear infinite;
- -webkit-animation: featureBottom 15s linear infinite;
- }
- }
- div{
- width: 163px;
- height: 186px;
- padding-top:80px;
- position: relative;
- background: url('/images/btbBusiness/feature-bg0.png') no-repeat center;
- &:hover{
- cursor: pointer;
- background: url('/images/btbBusiness/feature-bg1.png') no-repeat center;
- p{
- color: #2d84fd;
- }
- }
- p {
- margin: 0px;
- font-size: 18px;
- text-align: center;
- width: 100%;
- color: #fff;
- &:last-child{
- font-weight: bold;
- }
- }
- }
- }
- .moveTop {
- &:nth-child(2), &:nth-child(4), &:nth-child(6) {
- div {
- animation-play-state: paused;
- -webkit-animation-play-state: paused;
- transform: translateZ(0);
- }
- }
- &:nth-child(1), &:nth-child(3), &:nth-child(5) {
- div {
- animation-play-state: paused;
- -webkit-animation-play-state: paused;
- transform: translateZ(0);
- }
- }
- }
- /* .move{
- &:nth-child(2), &:nth-child(4), &:nth-child(6){
- div{
- top: 40px;
- animation: featureTop 3s linear infinite;
- -moz-animation: featureTop 3s linear infinite;
- -o-animation: featureTop 3s linear infinite;
- -webkit-animation: featureTop 3s linear infinite;
- }
- }
- &:nth-child(1), &:nth-child(3), &:nth-child(5){
- div{
- top: 0px;
- animation: featureBottom 3s linear infinite;
- -moz-animation: featureBottom 3s linear infinite;
- -o-animation: featureBottom 3s linear infinite;
- -webkit-animation: featureBottom 3s linear infinite;
- }
- }
- }*/
- /* .moveBottom {
- &:nth-child(2), &:nth-child(4), &:nth-child(6) {
- div {
- top: 0px;
- }
- }
- &:nth-child(1), &:nth-child(3), &:nth-child(5) {
- div {
- top: 40px;
- }
- }
- }
- .moveTop{
- &:nth-child(2), &:nth-child(4), &:nth-child(6){
- div{
- top: 40px;
- }
- }
- &:nth-child(1), &:nth-child(3), &:nth-child(5){
- div{
- top: 0px;
- }
- }
- }*/
- }
- }
- }
- </style>
|