<template>
  <div class="components">
    <ul class="centerLabel userList">
      <item v-for="(user, k) in userList" :key="k" :item="user"></item>
    </ul>
  </div>
</template>

<script>
import item from './userItem'
export default {
  name: 'components',
  props: ['userList'],
  data () {
    return {
    }
  },
  computed: {
  },
  components: {
    item
  },
  created () {
  },
  mounted () {
    this.$nextTick(() => {
    })
  },
  methods: {
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.components {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  .userList {
    width: 35vw;
    overflow: hidden;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    > li {
      width: 100%;
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.15);
      margin: 1.8vh auto 0;
      padding: 9vh 0;
      transform: translateY(100vh);
      -webkit-transform: translateY(100vh);
      transition: all 0.3s linear;
      -webkit-transition: all 0.3s linear;
      &:first-child {
        margin-top: 0;
      }
      &.active {
        transform: translateY(0);
        -webkit-transform: translateY(0);
      }
      span {
        width: 100%;
        display: block;
        color: #fff;
        text-align: center;
        line-height: 1.45;
        font-size: 2.3vw;
        &:first-child {
          font-size: 2.8vw;
          line-height: 1.3;
        }
      }
    }
  }
}
</style>
