stickyroll / vue-stickyroll

Vue.js version of stickyroll

Home Page:https://vue-stickyroll.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

yarn add @stickyroll/vue

Usage

<template>
	<Stickyroll :pages="4" anchors="my/sticky/vue">
		<template slot-scope="context">
			<div>{{context.page}} of {{context.pages}}</div>
			<div>{{context.progress}}</div>
		</template>
	</Stickyroll>
</template>

<script>
import Stickyroll from "@stickyroll/vue";
export default {
	name: "App",
	components: {
		Stickyroll
	}
};
</script>

<style src="@stickyroll/vue/index.css"></style>

<style scoped>
body {
	margin: 0;
}
</style>

About

Vue.js version of stickyroll

https://vue-stickyroll.netlify.com


Languages

Language:JavaScript 75.2%Language:Vue 23.7%Language:HTML 1.0%Language:CSS 0.1%