LoginSignup
0
0

More than 3 years have passed since last update.

【Mac】Vueカルーセルコンポーネント「Hooper」を使う

Last updated at Posted at 2020-08-05

ドキュメント

https://baianat.github.io/hooper/getting-started.html

インストール

Macターミナル
npm install hooper

vueコンポーネント

HooperSample.vue
<template>
  <hooper>
    <slide>
      slide 1
    </slide>
    <slide>
      slide 2
    </slide>
    <slide>
      slide 3
    </slide>
    <slide>
      slide 4
    </slide>
    <hooper-progress slot="hooper-addons"></hooper-progress>
    <hooper-pagination slot="hooper-addons"></hooper-pagination>
  </hooper>
</template>

<script>
import 
    Hooper,
    Slide,
    Progress as HooperProgress,
    Pagination as HooperPagination,
} from 'hooper';
import 'hooper/dist/hooper.css';

export default {
    name: 'App',
    components: {
      Hooper,
      Slide,
      HooperProgress,
      HooperPagination,
    }
  };
</script>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0