k-swipe

0.1.7 • Public • Published

k-swipe

Import animation css:

@import('../../node_modules/k-swipe')

Initialize the component:

app.component require 'k-swipe'

Initialize the component:

<view name="k-swipe" prev="{{#root._page.prevpost.url}}" next="{{#root._page.nextpost.url}}"></view>

Set k-swipe-root for the element that you want to be scrolled. Set its class as {{_page.swipefrom}} as that will enable the animation.

<div id="k-swipe-root" class="content-center {{_page.swipefrom}}">
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i k-swipe

Weekly Downloads

0

Version

0.1.7

License

MIT

Last publish

Collaborators

  • ile