All Projects → angelomelonas → vue-scroll-snap

angelomelonas / vue-scroll-snap

Licence: MIT license
A super simple Vue component that allows fullscreen and horizontal scroll snapping.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to vue-scroll-snap

V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (+764%)
Mutual labels:  vue-components, scroll
Vue Virtual Collection
Vue component for efficiently rendering large collection data
Stars: ✭ 506 (+1924%)
Mutual labels:  vue-components, scroll
Snappyrecyclerview
An extension to RecyclerView which will snap to child Views to the specified anchor, START, CENTER or END.
Stars: ✭ 178 (+612%)
Mutual labels:  snap, scroll
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (+304%)
Mutual labels:  vue-components, scroll
Scroll Snap Carousel
Carousel based on CSS Scroll Snap functionality
Stars: ✭ 31 (+24%)
Mutual labels:  snap, scroll
Vue Fullpage.js
Official Vue.js wrapper for fullPage.js http://alvarotrigo.com/vue-fullpage/
Stars: ✭ 1,626 (+6404%)
Mutual labels:  snap, vue-components
Scroll Snap
↯ Snap page when user stops scrolling, with a customizable configuration and a consistent cross browser behaviour
Stars: ✭ 187 (+648%)
Mutual labels:  snap, scroll
nextcloud-snap
☁️📦 Nextcloud packaged as a snap
Stars: ✭ 1,445 (+5680%)
Mutual labels:  snap
vm-markdown
Example
Stars: ✭ 96 (+284%)
Mutual labels:  vue-components
sweet-modal-vue
The sweetest library to happen to modals.
Stars: ✭ 762 (+2948%)
Mutual labels:  vue-components
ari
Accessible unstyled vue components
Stars: ✭ 22 (-12%)
Mutual labels:  vue-components
study-snap
📓📲 Flutter app for managing study materials in form of photos.
Stars: ✭ 34 (+36%)
Mutual labels:  snap
react-use-scroll-position
A react hook to use scroll position
Stars: ✭ 45 (+80%)
Mutual labels:  scroll
universalSmoothScroll
A cross-browser smooth-scrolling API which supports multiple and interruptable scroll-animations on all DOM's elements, even at the same time!
Stars: ✭ 46 (+84%)
Mutual labels:  scroll
vue-scrollwatch
scrollspy
Stars: ✭ 59 (+136%)
Mutual labels:  scroll
vue-ui
A collection of VueJS components(Go to VueFace)
Stars: ✭ 19 (-24%)
Mutual labels:  vue-components
vue-scroll-progress
🎉 Page scroll progress bar component for @vuejs
Stars: ✭ 96 (+284%)
Mutual labels:  scroll
chusho
A library of bare & accessible components and tools for Vue.js 3
Stars: ✭ 47 (+88%)
Mutual labels:  vue-components
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (+148%)
Mutual labels:  scroll
bee-ui
VUE组件库
Stars: ✭ 16 (-36%)
Mutual labels:  vue-components

Vue Scroll Snap

A super simple Vue component that allows both fullscreen and horizontal scroll snapping.

NPM

Showcase

Check out the live demo to see the scroll snapping in action.

Installation

npm install vue-scroll-snap --save

Usage

There are four ways of using Vue Scroll Snap. They are described below. For more a more detailed description, see the example directory.

Vertical

<template>
  <vue-scroll-snap>
    <div class="item"></div>
    <div class="item"></div>
    ...
  </vue-scroll-snap>
</template>

<script>
  import VueScrollSnap from "vue-scroll-snap";

  export default {
    components: {VueScrollSnap},
  };
</script>

<style>

  .item {
    /* Set the minimum height of the items to be the same as the height of the scroll-snap-container.*/
    min-height: 500px;
  }

  .scroll-snap-container {
    height: 500px;
    width: 500px;
  }
</style>

Horizontal

<template>
  <vue-scroll-snap :horizontal="true">
    ...
  </vue-scroll-snap>    
</template>

<script>...</script>

<style>

  .item {
    /* Set the minimum width of the items to be the same as the width of the scroll-snap-container.*/
    min-width: 500px;
  }

  .scroll-snap-container {...}
</style>

Fullscreen Vertical

<template>
  <vue-scroll-snap :fullscreen="true">
    ...
  </vue-scroll-snap>
</template>

<script>...</script>
<style>/* No styling required. */</style>

Fullscreen Horizontal

<template>
  <vue-scroll-snap :fullscreen="true" :horizontal="true">
    ...
  </vue-scroll-snap>
</template>

<script>...</script>
<style>/* No styling required. */</style>

Props

Optional Props

Prop Type Default
fullscreen Boolean false
horizontal Boolean false

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].