Giter Club home page Giter Club logo

swipablecard's Introduction

Swiper 카드

실행방법

cli에서 아래 커맨드를 실행

npm i
npm run dev

이후 cli에 표시된 주소로 이동

요구사항

  • 위 예시와 동일하게 동작하는 두개의 카드를 만드는 것을 목표로 합니다.
  • 아래 요구사항을 모두 만족해야 하며, 특히 마지막 요구사항인 "Flip" 제스쳐 구현은 반드시 되야 합니다.
  • 모바일 기기에서 손가락을 이용한 동작이 잘 되는것이 중요하고, 마우스로도 동일하게 동작해야합니다.
  • 각 카드는 3초간 아무런 액션이 없으면, 자동으로 다음 카드로 전환됩니다.(AUTO TRANSITION)
  • 카드를 클릭하면 Alert으로 클릭한 카드의 색상을 보여줍니다.
  • 각 카드는 좌우로 이동할 수 있는 스와이프 기능이 있으며, 마우스와 손가락 제스쳐(모바일)로 가능합니다.
  • 스와이프 도중 - 드래그 양과 동일하게 카드가 이동해야 하며, opacity 또한 조정되야 합니다.(SWIPE)
  • 각 카드의 넓이의 50% 이상 움직인 상태에서 카드를 놓으면, 다음 카드로 전환합니다.(TO RIGHT / LEFT)
  • 각 카드의 넓이의 50% 미만으로 움직인 상태에서 카드를 놓으면, 기존 카드로 되돌아갑니다.(CANCEL)
  • 일정속도 이상으로 스와이프 할때에는, 총 드래그 양과 무관하게 다음 카드로 이동합니다.(Flip right / left)

swipablecard's People

Contributors

tylertaeyeobyeo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.