0.0.10 • Published 12 months ago

@wattanx/hooper-vue3 v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Hooper for Vue 3

The Vue 3 compatible of https://github.com/baianat/hooper

▶️ Playground

Installation

npm install @wattanx/hooper-vue3

Usage

<script setup lang="ts">
import { Hooper, Slide, Navigation, Pagination } from '@wattanx/hooper-vue3';
import '@wattanx/hooper-vue3/css';
</script>

<template>
  <Hooper :style="{ 'max-width': '720px' }">
    <Slide>slide 1</Slide>
    <Slide>slide 2</Slide>
    <Slide>slide 3</Slide>
    <Slide>slide 4</Slide>
    <Slide>slide 5</Slide>
    <Slide>slide 6</Slide>
    <template #hooper-addons>
      <Navigation></Navigation>
      <Pagination />
    </template>
  </Hooper>
</template>

<style>
.hooper-slide {
  background-color: #62caaa;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  border: 2px solid #fff;
  font-size: 30px;
  border-radius: 10px;
}
.is-active {
  background-color: rgb(71, 218, 127);
}
#centerMode .hooper-slide.is-current {
  transform: scale(1.2);
}
</style>
0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago