<template>
  <div>
    <div class="container">
      <div><slot></slot></div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'XMaquee'
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;

  div {
    animation: scoll 30s linear 0s infinite;

    width: 100%;
    right: -100%;
    top: 0;
    position: absolute;
  }

  @keyframes scoll {
    from {
      right: -100%;
    }
    to {
      right: 100%;
    }
  }
}
</style>
