Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

stickyroll/vue-stickyroll

Repository files navigation

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>

Releases

No releases published

Packages

No packages published

Languages