<template>
  <section id="intro">
    <div>
      <carousel
        :nav="false"
        :dots="false"
        :items="1"
        :autoplay="true"
        :loop="true"
        :autoHeight="true"
        id="intro-carousel"
        style="margin-top:-50px;"
        :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
      >
        <img
          class="item"
          style="object-fit:cover"
          v-for="(image, i) in propertyImages"
          :src="image.image"
          :key="i"
        />
      </carousel>
    </div>
  </section>
</template>

<script>
/* eslint-disable */

import carousel from "vue-owl-carousel";
export default {
  components: {
    carousel
  },
  data() {
    return {
      images: []
    };
  },
  props: {
    propertyImages: {}
  },
  mounted() {
    // setTimeout(() => {
    //   this.wait = false;
    // }, 2000);
    this.$emit("Loaded", true);
  }
};
</script>

<style lang="scss" scoped></style>
