Web | Mobile |
---|---|
This project is a documentation of the study to develop the Carousel style visual interaction.
- Vue
- TypeScript
- Tailwind CSS
- SCSS
- Vue2 Touch Event
- Fontawesome
- Yarn
-
Before you start, install
Yarn
package to global.npm install --global yarn
-
Docker install required
-
Clone the repo
git clone https://github.com/VannsKang/Vue-Flippable-Card-Carousel.git
-
Install NPM packages
yarn install
-
Run the project
yarn serve
-
Build the package
yarn build
-
Run the Docker inside
./docker
folderdocker-compose up
-
There are
App
and child componentFlippableCard
-
You can control the
Flippable Card Carousel
in various way-
Rotate the card:
- Click or Tap(Mobile) the arrow icons
- Click or Tap(Mobile) the next or previous card face
- Use key
ArrowRgiht
andArrowLeft
- Slide left or right on the carousel area (Mobile)
-
-
Flip the card:
- Mouse over the center card
- Use key
ArrowUp
andArrowDown
- Tap the center card & tap outside the center card (Mobile)
.
├── public
├── src/
│ ├── assets
│ ├── components/
│ │ ├── index.ts
│ │ └── FlippableCard.vue
│ ├── styles/
│ │ ├── mixin.scss
│ │ └── index.css
│ ├── typings/
│ │ └── index.ts
│ ├── App.vue
│ ├── custom.d.ts
│ ├── main.ts
│ └── ...
├── tailwind.config.js
├── tsconfig.json
├── package.json
├── vue.config.js
└── ...
dependencies:
core-js 3.21.1
vue 2.6.14
vue2-touch-events 3.2.2
devDependencies:
@fortawesome/fontawesome-svg-core 1.3.0
@fortawesome/free-regular-svg-icons 6.0.0
@fortawesome/free-solid-svg-icons 6.0.0
@fortawesome/vue-fontawesome 2.0.6
@typescript-eslint/eslint-plugin 5.15.0
@typescript-eslint/parser 5.15.0
@vue/cli-plugin-babel 5.0.1
@vue/cli-plugin-eslint 5.0.1
@vue/cli-plugin-typescript 5.0.1
@vue/cli-service 5.0.1
@vue/eslint-config-typescript 9.1.0
autoprefixer 10.4.2
eslint 7.32.0
eslint-plugin-vue 8.5.0
postcss 8.4.8
sass 1.49.9
sass-loader 12.6.0
tailwindcss 3.0.23
typescript 4.5.5
vue-template-compiler 2.6.14
This project is optimized & tested in Chrome
.